Commit e8291974 authored by Greg Donald's avatar Greg Donald Committed by Greg Kroah-Hartman

drivers: staging: lustre: Fix return is not a function, parentheses are not required errors

Fix checkpatch.pl return is not a function, parentheses are not required errors
Signed-off-by: default avatarGreg Donald <gdonald@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d696b7f7
...@@ -447,7 +447,7 @@ static inline int llog_group_ctxt_null(struct obd_llog_group *olg, int index) ...@@ -447,7 +447,7 @@ static inline int llog_group_ctxt_null(struct obd_llog_group *olg, int index)
static inline int llog_ctxt_null(struct obd_device *obd, int index) static inline int llog_ctxt_null(struct obd_device *obd, int index)
{ {
return (llog_group_ctxt_null(&obd->obd_olg, index)); return llog_group_ctxt_null(&obd->obd_olg, index);
} }
static inline int llog_destroy(const struct lu_env *env, static inline int llog_destroy(const struct lu_env *env,
......
...@@ -631,7 +631,7 @@ EXPORT_SYMBOL(ldlm_pool_shrink); ...@@ -631,7 +631,7 @@ EXPORT_SYMBOL(ldlm_pool_shrink);
int ldlm_pool_setup(struct ldlm_pool *pl, int limit) int ldlm_pool_setup(struct ldlm_pool *pl, int limit)
{ {
if (pl->pl_ops->po_setup != NULL) if (pl->pl_ops->po_setup != NULL)
return(pl->pl_ops->po_setup(pl, limit)); return pl->pl_ops->po_setup(pl, limit);
return 0; return 0;
} }
EXPORT_SYMBOL(ldlm_pool_setup); EXPORT_SYMBOL(ldlm_pool_setup);
......
...@@ -140,7 +140,7 @@ static inline struct lov_lock_handles * ...@@ -140,7 +140,7 @@ static inline struct lov_lock_handles *
lov_handle2llh(struct lustre_handle *handle) lov_handle2llh(struct lustre_handle *handle)
{ {
LASSERT(handle != NULL); LASSERT(handle != NULL);
return(class_handle2object(handle->cookie)); return class_handle2object(handle->cookie);
} }
static inline void lov_llh_put(struct lov_lock_handles *llh) static inline void lov_llh_put(struct lov_lock_handles *llh)
......
...@@ -107,7 +107,7 @@ static void *pool_key(struct hlist_node *hnode) ...@@ -107,7 +107,7 @@ static void *pool_key(struct hlist_node *hnode)
struct pool_desc *pool; struct pool_desc *pool;
pool = hlist_entry(hnode, struct pool_desc, pool_hash); pool = hlist_entry(hnode, struct pool_desc, pool_hash);
return (pool->pool_name); return pool->pool_name;
} }
static int pool_hashkey_keycmp(const void *key, struct hlist_node *compared_hnode) static int pool_hashkey_keycmp(const void *key, struct hlist_node *compared_hnode)
......
...@@ -1120,7 +1120,7 @@ static int check_write_rcs(struct ptlrpc_request *req, ...@@ -1120,7 +1120,7 @@ static int check_write_rcs(struct ptlrpc_request *req,
/* return error if any niobuf was in error */ /* return error if any niobuf was in error */
for (i = 0; i < niocount; i++) { for (i = 0; i < niocount; i++) {
if ((int)remote_rcs[i] < 0) if ((int)remote_rcs[i] < 0)
return(remote_rcs[i]); return remote_rcs[i];
if (remote_rcs[i] != 0) { if (remote_rcs[i] != 0) {
CDEBUG(D_INFO, "rc[%d] invalid (%d) req %p\n", CDEBUG(D_INFO, "rc[%d] invalid (%d) req %p\n",
......
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