From: Santha Meena Ramamoorthy Date: Sat, 24 Feb 2018 22:56:36 +0000 (-0800) Subject: staging: lustre: remove else after return statement X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=899821135cb1316752a31f57bd66fbf943ee1ca9;p=openwrt%2Fstaging%2Fblogic.git staging: lustre: remove else after return statement Remove else after a return statement as it is not useful. Issue found using checkpatch. Signed-off-by: Santha Meena Ramamoorthy Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c index 844182ad7dd7..bc5d6b6ac429 100644 --- a/drivers/staging/lustre/lustre/llite/llite_lib.c +++ b/drivers/staging/lustre/lustre/llite/llite_lib.c @@ -1193,13 +1193,12 @@ static int ll_update_lsm_md(struct inode *inode, struct lustre_md *md) lmv_free_memmd(lli->lli_lsm_md); lli->lli_lsm_md = NULL; return 0; - } else { - /* - * The lustre_md from req does not include stripeEA, - * see ll_md_setattr - */ - return 0; } + /* + * The lustre_md from req does not include stripeEA, + * see ll_md_setattr + */ + return 0; } /* set the directory layout */