Skip to content

Commit

Permalink
nfs: Convert to use the preferred fallthrough macro
Browse files Browse the repository at this point in the history
Convert the uses of fallthrough comments to fallthrough macro. Please see
commit 294f69e ("compiler_attributes.h: Add 'fallthrough' pseudo
keyword for switch/case use") for detail.

Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
  • Loading branch information
Miaohe Lin authored and Anna Schumaker committed Sep 21, 2020
1 parent d8a6ad9 commit cf65e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ static struct nfs_server *nfs_try_mount_request(struct fs_context *fc)
default:
if (rpcauth_get_gssinfo(flavor, &info) != 0)
continue;
/* Fallthrough */
fallthrough;
}
dfprintk(MOUNT, "NFS: attempting to use auth flavor %u\n", flavor);
ctx->selected_flavor = flavor;
Expand Down

0 comments on commit cf65e49

Please sign in to comment.