From: Cristina Moraru Date: Sun, 25 Oct 2015 21:16:31 +0000 (+0200) Subject: staging: lustre: Don't ignore error code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2a96be0d46825689ac9b6078056e523ba96acec4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: lustre: Don't ignore error code Error stored in rc was never reported, so directly return it here. Signed-off-by: Cristina Moraru Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/selftest/conctl.c b/drivers/staging/lustre/lnet/selftest/conctl.c index 817396638652..556c837cf62c 100644 --- a/drivers/staging/lustre/lnet/selftest/conctl.c +++ b/drivers/staging/lustre/lnet/selftest/conctl.c @@ -441,7 +441,7 @@ lst_group_info_ioctl(lstio_group_info_args_t *args) if (args->lstio_grp_dentsp != NULL && (copy_to_user(args->lstio_grp_idxp, &index, sizeof(index)) || copy_to_user(args->lstio_grp_ndentp, &ndent, sizeof(ndent)))) - rc = -EFAULT; + return -EFAULT; return 0; }