drivers: staging: lustre: Fix return is not a function, parentheses are not required...
authorGreg Donald <gdonald@gmail.com>
Sun, 31 Aug 2014 22:40:17 +0000 (17:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Sep 2014 17:29:51 +0000 (10:29 -0700)
Fix checkpatch.pl return is not a function, parentheses are not required errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lustre_log.h
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
drivers/staging/lustre/lustre/lov/lov_internal.h
drivers/staging/lustre/lustre/lov/lov_pool.c
drivers/staging/lustre/lustre/osc/osc_request.c

index ed9788742fa1dbea663bbb4966d60858e5d483cc..2f50b81e326fcd1d68f4e563ab2178e9a608e12c 100644 (file)
@@ -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)
 {
-       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,
index 150b44de0f64e1b0e10afb657550cc10f848be2e..a0d39256b926227f4e70fb67a86a90d153dffc35 100644 (file)
@@ -631,7 +631,7 @@ EXPORT_SYMBOL(ldlm_pool_shrink);
 int ldlm_pool_setup(struct ldlm_pool *pl, int limit)
 {
        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;
 }
 EXPORT_SYMBOL(ldlm_pool_setup);
index 1b96fac4889de3db14ed686da6950b444b92a062..c61db3a1dd2a0982ff3e4ee7c1064a7b107e8e8c 100644 (file)
@@ -140,7 +140,7 @@ static inline struct lov_lock_handles *
 lov_handle2llh(struct lustre_handle *handle)
 {
        LASSERT(handle != NULL);
-       return(class_handle2object(handle->cookie));
+       return class_handle2object(handle->cookie);
 }
 
 static inline void lov_llh_put(struct lov_lock_handles *llh)
index 91b3509a8083d0e5c7c4af04a0fe991ecc44e4c0..ec48ea44bd38405fbbef76e3d8bc7e143d654225 100644 (file)
@@ -107,7 +107,7 @@ static void *pool_key(struct hlist_node *hnode)
        struct pool_desc *pool;
 
        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)
index e3feb216f3cbf1052ce6bc3a926ffa232bdce74c..d9f72496698c837a5e4d387dafd3515e5aac67d0 100644 (file)
@@ -1120,7 +1120,7 @@ static int check_write_rcs(struct ptlrpc_request *req,
        /* return error if any niobuf was in error */
        for (i = 0; i < niocount; i++) {
                if ((int)remote_rcs[i] < 0)
-                       return(remote_rcs[i]);
+                       return remote_rcs[i];
 
                if (remote_rcs[i] != 0) {
                        CDEBUG(D_INFO, "rc[%d] invalid (%d) req %p\n",