nfsd: remove unneeded break
Subsystems (2)
PATCH 1/1 nfsd: remove unneeded break
From: Tom Rix <[email protected]>
Because every path through nfs4_find_file()'s switch does an explicit return, the break is not needed.
Signed-off-by Tom Rix <[email protected]>
--- fs/nfsd/nfs4state.c | 1 - 1 file changed, 1 deletion(-)
fs/nfsd/nfs4state.c +0 -1
@@ -5722,7 +5722,6 @@ nfs4_find_file(struct nfs4_stid *s, int flags)return find_readable_file (s->sc_file); else return find_writeable_file(s->sc_file); -break ; }return NULL ;
Signature · 1 line
2.18.1
Quoted 4 lines · On Sun, Oct 11, 2020 at 08:51:55AM -0700, [email protected] wrote:
From: Tom Rix <[email protected]>
Because every path through nfs4_find_file()'s switch does an explicit return, the break is not needed.
OK, applying.--b.
Quoted 20 lines
Signed-off-by Tom Rix <[email protected]>--- fs/nfsd/nfs4state.c | 1 - 1 file changed, 1 deletion(-)fs/nfsd/nfs4state.c +0
-1@@ -5722,7 +5722,6 @@ nfs4_find_file(struct nfs4_stid *s, int flags)return find_readable_file (s->sc_file); else return find_writeable_file(s->sc_file); -break ; }return NULL ;Signature · 1 line
2.18.1