staging: lustre: remove RETURN macro
[deliverable/linux.git] / drivers / staging / lustre / lustre / libcfs / linux / linux-module.c
index 004ff71663af4608354e847c941b46c57d2408eb..55296a3591d5159a40d67a95997c2972a90496a4 100644 (file)
@@ -51,31 +51,31 @@ int libcfs_ioctl_getdata(char *buf, char *end, void *arg)
 
        err = copy_from_user(buf, (void *)arg, sizeof(*hdr));
        if (err)
-               RETURN(err);
+               return err;
 
        if (hdr->ioc_version != LIBCFS_IOCTL_VERSION) {
                CERROR("PORTALS: version mismatch kernel vs application\n");
-               RETURN(-EINVAL);
+               return -EINVAL;
        }
 
        if (hdr->ioc_len + buf >= end) {
                CERROR("PORTALS: user buffer exceeds kernel buffer\n");
-               RETURN(-EINVAL);
+               return -EINVAL;
        }
 
 
        if (hdr->ioc_len < sizeof(struct libcfs_ioctl_data)) {
                CERROR("PORTALS: user buffer too small for ioctl\n");
-               RETURN(-EINVAL);
+               return -EINVAL;
        }
 
        err = copy_from_user(buf, (void *)arg, hdr->ioc_len);
        if (err)
-               RETURN(err);
+               return err;
 
        if (libcfs_ioctl_is_invalid(data)) {
                CERROR("PORTALS: ioctl not correctly formatted\n");
-               RETURN(-EINVAL);
+               return -EINVAL;
        }
 
        if (data->ioc_inllen1)
@@ -85,7 +85,7 @@ int libcfs_ioctl_getdata(char *buf, char *end, void *arg)
                data->ioc_inlbuf2 = &data->ioc_bulk[0] +
                        cfs_size_round(data->ioc_inllen1);
 
-       RETURN(0);
+       return 0;
 }
 
 int libcfs_ioctl_popdata(void *arg, void *data, int size)
This page took 0.024318 seconds and 5 git commands to generate.