Linux-NFS Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] nfsd4: Remove unneeded semicolon
@ 2019-12-19  9:29 zhengbin
  2019-12-19 22:43 ` J. Bruce Fields
  0 siblings, 1 reply; 2+ messages in thread
From: zhengbin @ 2019-12-19  9:29 UTC (permalink / raw)
  To: bfields, chuck.lever, linux-nfs; +Cc: zhengbin13

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] nfsd4: Remove unneeded semicolon
  2019-12-19  9:29 [PATCH] nfsd4: Remove unneeded semicolon zhengbin
@ 2019-12-19 22:43 ` J. Bruce Fields
  0 siblings, 0 replies; 2+ messages in thread
From: J. Bruce Fields @ 2019-12-19 22:43 UTC (permalink / raw)
  To: zhengbin; +Cc: chuck.lever, linux-nfs

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-19  9:29 [PATCH] nfsd4: Remove unneeded semicolon zhengbin
2019-12-19 22:43 ` J. Bruce Fields

Linux-NFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-nfs/0 linux-nfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-nfs linux-nfs/ https://lore.kernel.org/linux-nfs \
		linux-nfs@vger.kernel.org
	public-inbox-index linux-nfs

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-nfs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git