staging: lustre: Don't ignore error code
PATCH 1/1 staging: lustre: Don't ignore error code
Error stored in rc was never reported,
so directly return it here.
Signed-off-by Cristina Moraru <[email protected]>
--- drivers/staging/lustre/lnet/selftest/conctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/selftest/conctl.c +1 -1
@@ -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 ; }
Signature · 1 line
1.9.1