nfsd: remove unneeded break
authorTom Rix <trix@redhat.com>
Sun, 11 Oct 2020 15:51:55 +0000 (08:51 -0700)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 16 Oct 2020 19:15:04 +0000 (15:15 -0400)
Because every path through nfs4_find_file()'s
switch does an explicit return, the break is not needed.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index 4f39645..d7f27ed 100644 (file)
@@ -5723,7 +5723,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;