nfsd4: Remove unneeded semicolon
diff mbox series

Message ID 1576747760-120195-1-git-send-email-zhengbin13@huawei.com
State New
Headers show
Series
  • nfsd4: Remove unneeded semicolon
Related show

Commit Message

Zheng Bin Dec. 19, 2019, 9:29 a.m. UTC
Fixes coccicheck warning:

fs/nfsd/nfs4state.c:3376:2-3: Unneeded semicolon

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
 fs/nfsd/nfs4state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4

Comments

J. Bruce Fields Dec. 19, 2019, 10:43 p.m. UTC | #1
Thanks, applying.--b.

On Thu, Dec 19, 2019 at 05:29:20PM +0800, zhengbin wrote:
> Fixes coccicheck warning:
> 
> fs/nfsd/nfs4state.c:3376:2-3: Unneeded semicolon
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: zhengbin <zhengbin13@huawei.com>
> ---
>  fs/nfsd/nfs4state.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index 369e574..54c2917 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -3373,7 +3373,7 @@ static __be32 nfsd4_map_bcts_dir(u32 *dir)
>  	case NFS4_CDFC4_BACK_OR_BOTH:
>  		*dir = NFS4_CDFC4_BOTH;
>  		return nfs_ok;
> -	};
> +	}
>  	return nfserr_inval;
>  }
> 
> --
> 2.7.4

Patch
diff mbox series

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 369e574..54c2917 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -3373,7 +3373,7 @@  static __be32 nfsd4_map_bcts_dir(u32 *dir)
 	case NFS4_CDFC4_BACK_OR_BOTH:
 		*dir = NFS4_CDFC4_BOTH;
 		return nfs_ok;
-	};
+	}
 	return nfserr_inval;
 }