From: Pan Bian Date: Sat, 3 Dec 2016 12:52:55 +0000 (+0800) Subject: staging: lustre: lnet: fix improper return value X-Git-Tag: v4.14-rc1~1919^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f9bc53fdcaa5048fede01c4c5a760f7d38caaba;p=platform%2Fkernel%2Flinux-rpi.git staging: lustre: lnet: fix improper return value At the end of function lstcon_group_info(), "return 0" seems improper. It may be better to return the value of rc. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188811 Signed-off-by: Pan Bian Acked-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest/console.c index f750b9c..1456d239 100644 --- a/drivers/staging/lustre/lnet/selftest/console.c +++ b/drivers/staging/lustre/lnet/selftest/console.c @@ -823,7 +823,7 @@ lstcon_group_info(char *name, lstcon_ndlist_ent_t __user *gents_p, lstcon_group_decref(grp); - return 0; + return rc; } static int