aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2016-12-03 20:52:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-12-06 10:41:03 +0100
commit4f9bc53fdcaa5048fede01c4c5a760f7d38caaba (patch)
tree4c5c66da6743ceae6270d2936d18ff8d0d1860d8 /drivers/staging
parentstaging: lustre: osc: Performance tune for LRU (diff)
downloadlinux-dev-4f9bc53fdcaa5048fede01c4c5a760f7d38caaba.tar.xz
linux-dev-4f9bc53fdcaa5048fede01c4c5a760f7d38caaba.zip
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 <bianpan2016@163.com> Acked-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/lustre/lnet/selftest/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lnet/selftest/console.c b/drivers/staging/lustre/lnet/selftest/console.c
index f750b9cb0441..1456d2395cc9 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