Commit a0d5fce7 authored by Liang Zhen's avatar Liang Zhen Committed by Greg Kroah-Hartman

staging: lustre: simple cleanup in obd_ioctl_popdata

Code simplification for obd_ioctl_popdata.
Signed-off-by: default avatarLiang Zhen <liang.zhen@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5435
Reviewed-on: http://review.whamcloud.com/11313Reviewed-by: default avatarBobi Jam <bobijam@gmail.com>
Reviewed-by: default avatarJohann Lombardi <johann.lombardi@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da4e5898
...@@ -158,9 +158,7 @@ int obd_ioctl_popdata(void __user *arg, void *data, int len) ...@@ -158,9 +158,7 @@ int obd_ioctl_popdata(void __user *arg, void *data, int len)
{ {
int err; int err;
err = copy_to_user(arg, data, len); err = copy_to_user(arg, data, len) ? -EFAULT : 0;
if (err)
err = -EFAULT;
return err; return err;
} }
EXPORT_SYMBOL(obd_ioctl_popdata); EXPORT_SYMBOL(obd_ioctl_popdata);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment