aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs3acl.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 12:26:46 -0600
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-02-01 13:32:32 -0500
commitffb81717a166b3c4a676ada61283b3121448e503 (patch)
tree16d1439c3fcf8c9c0ebfe27fd2ba200b57384762 /fs/nfs/nfs3acl.c
parentSUNRPC: Fix fall-through warnings for Clang (diff)
downloadlinux-dev-ffb81717a166b3c4a676ada61283b3121448e503.tar.xz
linux-dev-ffb81717a166b3c4a676ada61283b3121448e503.zip
nfs: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly add multiple break/goto/return/fallthrough statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/nfs3acl.c')
-rw-r--r--fs/nfs/nfs3acl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs3acl.c b/fs/nfs/nfs3acl.c
index c6c863382f37..68e206cf4c4e 100644
--- a/fs/nfs/nfs3acl.c
+++ b/fs/nfs/nfs3acl.c
@@ -111,6 +111,7 @@ struct posix_acl *nfs3_get_acl(struct inode *inode, int type)
fallthrough;
case -ENOTSUPP:
status = -EOPNOTSUPP;
+ goto getout;
default:
goto getout;
}