]> git.baikalelectronics.ru Git - kernel.git/commitdiff
NFS4: Remove unneeded semicolon
authorzhengbin <zhengbin13@huawei.com>
Thu, 19 Dec 2019 10:34:47 +0000 (18:34 +0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:31 +0000 (10:54 -0500)
Fixes coccicheck warning:

fs/nfs/nfs4state.c:1138:2-3: Unneeded semicolon
fs/nfs/nfs4proc.c:6862:2-3: Unneeded semicolon
fs/nfs/nfs4proc.c:8629:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4state.c

index 5f51f62b06525271b41dab01650505572ba6021b..904335b91b6a3f450ee91c38d09837ecbfdd7d4b 100644 (file)
@@ -6859,7 +6859,7 @@ static void nfs4_handle_setlk_error(struct nfs_server *server, struct nfs4_lock_
        case -NFS4ERR_STALE_STATEID:
                lsp->ls_seqid.flags &= ~NFS_SEQID_CONFIRMED;
                nfs4_schedule_lease_recovery(server->nfs_client);
-       };
+       }
 }
 
 static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_type)
@@ -8626,7 +8626,7 @@ static int _nfs4_proc_create_session(struct nfs_client *clp,
        case -EACCES:
        case -EAGAIN:
                goto out;
-       };
+       }
 
        clp->cl_seqid++;
        if (!status) {
index 34552329233dbc4af4e786f04daffa7ec179188f..fe1b908eecc812e41295bc3a6dd4912eaaed7ca4 100644 (file)
@@ -1135,7 +1135,7 @@ static void nfs_increment_seqid(int status, struct nfs_seqid *seqid)
                case -NFS4ERR_MOVED:
                        /* Non-seqid mutating errors */
                        return;
-       };
+       }
        /*
         * Note: no locking needed as we are guaranteed to be first
         * on the sequence list