summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLisa Nguyen <lisa@xenapiadmin.com>2013-10-22 04:52:03 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-27 03:21:55 (GMT)
commit02816395c090d17a4d8b8ae978d064e900b63d9f (patch)
treea30f2b2a2ed3178cf786cfdc07f1bbefd7ad9fe0
parent62fbc9f75ec7dc8c385103782a2975237c218588 (diff)
downloadlinux-fsl-qoriq-02816395c090d17a4d8b8ae978d064e900b63d9f.tar.xz
staging: lustre: lnet: Remove unnecessary () from return statements
Remove unnecessary parentheses from return statements in lib-lnet.h to meet kernel coding style. Signed-off-by: Lisa Nguyen <lisa@xenapiadmin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/include/linux/lnet/lib-lnet.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h b/drivers/staging/lustre/include/linux/lnet/lib-lnet.h
index 8869f10..0eb2e06 100644
--- a/drivers/staging/lustre/include/linux/lnet/lib-lnet.h
+++ b/drivers/staging/lustre/include/linux/lnet/lib-lnet.h
@@ -199,11 +199,11 @@ lnet_freelist_alloc(lnet_freelist_t *fl)
lnet_freeobj_t *o;
if (list_empty(&fl->fl_list))
- return (NULL);
+ return NULL;
o = list_entry(fl->fl_list.next, lnet_freeobj_t, fo_list);
list_del(&o->fo_list);
- return ((void *)&o->fo_contents);
+ return (void *)&o->fo_contents;
}
static inline void
@@ -369,7 +369,7 @@ lnet_eq_alloc(void)
lnet_eq_t *eq;
LIBCFS_ALLOC(eq, sizeof(*eq));
- return (eq);
+ return eq;
}
static inline void
@@ -405,7 +405,7 @@ lnet_md_alloc(lnet_md_t *umd)
INIT_LIST_HEAD(&md->md_list);
}
- return (md);
+ return md;
}
static inline void
@@ -429,7 +429,7 @@ lnet_me_alloc(void)
lnet_me_t *me;
LIBCFS_ALLOC(me, sizeof(*me));
- return (me);
+ return me;
}
static inline void
@@ -448,7 +448,7 @@ lnet_msg_alloc(void)
LIBCFS_ALLOC(msg, sizeof(*msg));
/* no need to zero, LIBCFS_ALLOC does for us */
- return (msg);
+ return msg;
}
static inline void