]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drivers: staging: lustre: Fix "else should follow close brace '}'" errors
authorGreg Donald <gdonald@gmail.com>
Fri, 3 Oct 2014 15:17:22 +0000 (10:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:13 +0000 (10:29 +0800)
Fix checkpatch.pl "else should follow close brace '}'" errors

Signed-off-by: Greg Donald <gdonald@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
drivers/staging/lustre/lustre/llite/dir.c
drivers/staging/lustre/lustre/lov/lov_pack.c
drivers/staging/lustre/lustre/obdclass/dt_object.c
drivers/staging/lustre/lustre/ptlrpc/lproc_ptlrpc.c

index e037756067123e40780c3e1a75123053ad93847f..8156b4c0f56876872abbea62e75b6172931f3727 100644 (file)
@@ -137,8 +137,7 @@ ll_quota_on(struct super_block *sb, int off, int ver, char *name, int remount)
                                           );
                path_put(&path);
                return rc;
-       }
-       else
+       } else
                return -ENOSYS;
 }
 
@@ -147,8 +146,7 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
        if (sb->s_qcop->quota_off) {
                return sb->s_qcop->quota_off(sb, off
                                            );
-       }
-       else
+       } else
                return -ENOSYS;
 }
 
index 662bdf04a451c2cb4e7fcecf31c3f033cec3e3ab..9e8bfdcfe5a4a43d40c17c9c03b0dc4a672236b3 100644 (file)
@@ -1509,8 +1509,7 @@ out_rmdir:
                                               cmd == LL_IOC_MDC_GETINFO)) {
                                rc = 0;
                                goto skip_lmm;
-                       }
-                       else
+                       } else
                                goto out_req;
                }
 
index 5edd6a3a9c548079cfa6b92a8c70496788577c30..5356d532417639de6fc86bfdabb5d016d488e6ea 100644 (file)
@@ -438,8 +438,7 @@ int lov_getstripe(struct obd_export *exp, struct lov_stripe_md *lsm,
        if (copy_from_user(&lum, lump, lum_size)) {
                rc = -EFAULT;
                goto out_set;
-       }
-       else if ((lum.lmm_magic != LOV_USER_MAGIC) &&
+       } else if ((lum.lmm_magic != LOV_USER_MAGIC) &&
                 (lum.lmm_magic != LOV_USER_MAGIC_V3)) {
                rc = -EINVAL;
                goto out_set;
index 909f542f8b8641bb01b28dcfa5abf483c8685314..e7be26ec7521e397f2bce877c27414adb93021df 100644 (file)
@@ -332,8 +332,7 @@ static struct dt_object *dt_reg_open(const struct lu_env *env,
        result = dt_lookup_dir(env, p, name, fid);
        if (result == 0){
                o = dt_locate(env, dt, fid);
-       }
-       else
+       } else
                o = ERR_PTR(result);
 
        return o;
index 87b9764a4f19d8ab5836536c308bac38bdcbfd77..1f4e76896da5998ad90a0e88ed9a513340121142 100644 (file)
@@ -694,8 +694,7 @@ default_queue:
        if (queue == PTLRPC_NRS_QUEUE_HP && !nrs_svc_has_hp(svc)) {
                rc = -ENODEV;
                goto out;
-       }
-       else if (queue == PTLRPC_NRS_QUEUE_BOTH && !nrs_svc_has_hp(svc))
+       } else if (queue == PTLRPC_NRS_QUEUE_BOTH && !nrs_svc_has_hp(svc))
                queue = PTLRPC_NRS_QUEUE_REG;
 
        /**