Whamcloud - gitweb
LU-4423 lnet: Don't ignore error code for lst_group_info_ioctl
[fs/lustre-release.git] / lnet / selftest / conctl.c
index b3adca0..804a7a0 100644 (file)
@@ -39,7 +39,6 @@
  *
  * Author: Liang Zhen <liangzhen@clusterfs.com>
  */
-#ifdef __KERNEL__
 
 #include <libcfs/libcfs.h>
 #include <lnet/lib-lnet.h>
@@ -437,7 +436,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;
 }
@@ -927,7 +926,3 @@ out:
 
        return rc;
 }
-
-EXPORT_SYMBOL(lstcon_ioctl_entry);
-
-#endif