staging: lustre: remove space between function name and and open parenthesis
authorSrikrishan Malik <srikrishanmalik@gmail.com>
Mon, 11 Aug 2014 18:27:27 +0000 (23:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:17 +0000 (12:23 -0700)
Fixes following checkpatch warning:

WARNING: space prohibited between function name and open parenthesis '('

Signed-off-by: Srikrishan Malik <srikrishanmalik@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/mdc/mdc_internal.h
drivers/staging/lustre/lustre/mdc/mdc_lib.c
drivers/staging/lustre/lustre/mdc/mdc_locks.c
drivers/staging/lustre/lustre/mdc/mdc_request.c

index e823555..f4da8f3 100644 (file)
@@ -40,7 +40,7 @@
 #include "../include/lustre_mdc.h"
 #include "../include/lustre_mds.h"
 
-#if defined (CONFIG_PROC_FS)
+#if defined CONFIG_PROC_FS
 void lprocfs_mdc_init_vars(struct lprocfs_static_vars *lvars);
 #else
 static inline void lprocfs_mdc_init_vars(struct lprocfs_static_vars *lvars)
index f54dd90..60217ba 100644 (file)
@@ -42,7 +42,7 @@
 
 static void __mdc_pack_body(struct mdt_body *b, __u32 suppgid)
 {
-       LASSERT (b != NULL);
+       LASSERT(b != NULL);
 
        b->suppgid = suppgid;
        b->uid = from_kuid(&init_user_ns, current_uid());
@@ -409,7 +409,7 @@ void mdc_link_pack(struct ptlrpc_request *req, struct md_op_data *op_data)
 
        CLASSERT(sizeof(struct mdt_rec_reint) == sizeof(struct mdt_rec_link));
        rec = req_capsule_client_get(&req->rq_pill, &RMF_REC_REINT);
-       LASSERT (rec != NULL);
+       LASSERT(rec != NULL);
 
        rec->lk_opcode   = REINT_LINK;
        rec->lk_fsuid    = op_data->op_fsuid;//current->fsuid;
index 71219b9..88b4382 100644 (file)
@@ -633,7 +633,7 @@ static int mdc_finish_enqueue(struct obd_export *exp,
 
                body = req_capsule_server_get(pill, &RMF_MDT_BODY);
                if (body == NULL) {
-                       CERROR ("Can't swab mdt_body\n");
+                       CERROR("Can't swab mdt_body\n");
                        return -EPROTO;
                }
 
index 4a1cc4e..0b517e5 100644 (file)
@@ -1702,7 +1702,7 @@ static int mdc_quotactl(struct obd_device *unused, struct obd_export *exp,
                if (oqc) {
                        *oqctl = *oqc;
                } else if (!rc) {
-                       CERROR ("Can't unpack obd_quotactl\n");
+                       CERROR("Can't unpack obd_quotactl\n");
                        rc = -EPROTO;
                }
        } else if (!rc) {
@@ -2426,14 +2426,14 @@ static int mdc_setup(struct obd_device *obd, struct lustre_cfg *cfg)
        struct lprocfs_static_vars lvars = { NULL };
        int rc;
 
-       OBD_ALLOC(cli->cl_rpc_lock, sizeof (*cli->cl_rpc_lock));
+       OBD_ALLOC(cli->cl_rpc_lock, sizeof(*cli->cl_rpc_lock));
        if (!cli->cl_rpc_lock)
                return -ENOMEM;
        mdc_init_rpc_lock(cli->cl_rpc_lock);
 
        ptlrpcd_addref();
 
-       OBD_ALLOC(cli->cl_close_lock, sizeof (*cli->cl_close_lock));
+       OBD_ALLOC(cli->cl_close_lock, sizeof(*cli->cl_close_lock));
        if (!cli->cl_close_lock)
                GOTO(err_rpc_lock, rc = -ENOMEM);
        mdc_init_rpc_lock(cli->cl_close_lock);
@@ -2459,9 +2459,9 @@ static int mdc_setup(struct obd_device *obd, struct lustre_cfg *cfg)
        return rc;
 
 err_close_lock:
-       OBD_FREE(cli->cl_close_lock, sizeof (*cli->cl_close_lock));
+       OBD_FREE(cli->cl_close_lock, sizeof(*cli->cl_close_lock));
 err_rpc_lock:
-       OBD_FREE(cli->cl_rpc_lock, sizeof (*cli->cl_rpc_lock));
+       OBD_FREE(cli->cl_rpc_lock, sizeof(*cli->cl_rpc_lock));
        ptlrpcd_decref();
        return rc;
 }
@@ -2523,8 +2523,8 @@ static int mdc_cleanup(struct obd_device *obd)
 {
        struct client_obd *cli = &obd->u.cli;
 
-       OBD_FREE(cli->cl_rpc_lock, sizeof (*cli->cl_rpc_lock));
-       OBD_FREE(cli->cl_close_lock, sizeof (*cli->cl_close_lock));
+       OBD_FREE(cli->cl_rpc_lock, sizeof(*cli->cl_rpc_lock));
+       OBD_FREE(cli->cl_close_lock, sizeof(*cli->cl_close_lock));
 
        ptlrpcd_decref();