]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:lustre: Fix space before open parenthesis
authorDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Sun, 20 Oct 2013 17:36:09 +0000 (23:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Oct 2013 03:50:01 +0000 (04:50 +0100)
Fix checkpatch.pl error "space required before the open parenthesis '('"
in lustre/lov.

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_dev.c
drivers/staging/lustre/lustre/lov/lov_io.c
drivers/staging/lustre/lustre/lov/lov_lock.c
drivers/staging/lustre/lustre/lov/lov_obd.c
drivers/staging/lustre/lustre/lov/lov_pack.c
drivers/staging/lustre/lustre/lov/lov_request.c

index 77caaf6826cd1dbaae13c4e3cf4190bbd46728cb..7f422aacf6e57d08b07aff415693c1ed6858a089 100644 (file)
@@ -446,7 +446,7 @@ static int lov_process_config(const struct lu_env *env,
        cmd = cfg->lcfg_command;
        rc = lov_process_config_base(d->ld_obd, cfg, &index, &gen);
        if (rc == 0) {
-               switch(cmd) {
+               switch (cmd) {
                case LCFG_LOV_ADD_OBD:
                case LCFG_LOV_ADD_INA:
                        rc = lov_cl_add_target(env, d, index);
index 5be0e2c243b051933669a50e5ea907ccca994d94..2792fa5c4be2fb38dff7fc9b3d2082dbb1476a02 100644 (file)
@@ -86,7 +86,7 @@ static void lov_io_sub_inherit(struct cl_io *io, struct lov_io *lio,
        struct lov_stripe_md *lsm    = lio->lis_object->lo_lsm;
        struct cl_io     *parent = lio->lis_cl.cis_io;
 
-       switch(io->ci_type) {
+       switch (io->ci_type) {
        case CIT_SETATTR: {
                io->u.ci_setattr.sa_attr = parent->u.ci_setattr.sa_attr;
                io->u.ci_setattr.sa_valid = parent->u.ci_setattr.sa_valid;
index 7682aeb3fa6adf946a10f2c9708235ae1c065603..a250b2f7773d2be6115899958279f1e14f764e36 100644 (file)
@@ -742,7 +742,7 @@ static void lov_lock_cancel(const struct lu_env *env,
                                continue;
                        }
 
-                       switch(sublock->cll_state) {
+                       switch (sublock->cll_state) {
                        case CLS_HELD:
                                rc = cl_unuse_try(subenv->lse_env, sublock);
                                lov_sublock_release(env, lck, i, 0, 0);
index df35b421b93aee2a19ad6ddeed8612ad181b0511..379e2847f99bc6d0943fcbdd2d8696e263c71414 100644 (file)
@@ -923,7 +923,7 @@ int lov_process_config_base(struct obd_device *obd, struct lustre_cfg *lcfg,
        int cmd;
        int rc = 0;
 
-       switch(cmd = lcfg->lcfg_command) {
+       switch (cmd = lcfg->lcfg_command) {
        case LCFG_LOV_ADD_OBD:
        case LCFG_LOV_ADD_INA:
        case LCFG_LOV_DEL_OBD: {
index 2f80833f164ac1370d63842b15a2bd1a6e852045..dbd1ff0def1b6ab5d52765ee31d3acc7283d2bd6 100644 (file)
@@ -121,7 +121,7 @@ void lov_dump_lmm(int level, void *lmm)
 do {                                                               \
        if (!(test)) lov_dump_lmm(D_ERROR, lmm);                        \
        LASSERT(test); /* so we know what assertion failed */      \
-} while(0)
+} while (0)
 
 /* Pack LOV object metadata for disk storage.  It is packed in LE byte
  * order and is opaque to the networking layer.
index 7ac62de946edf291a3802a2dbef50f35d0a02f3e..bf324ae2946f11cac0b0cdd4a04796094756d102 100644 (file)
@@ -1315,7 +1315,7 @@ out_set:
                        (tot) = LOV_U64_MAX;                        \
                else                                                \
                        (tot) += (add);                          \
-       } while(0)
+       } while (0)
 
 int lov_fini_statfs(struct obd_device *obd, struct obd_statfs *osfs,int success)
 {