diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 21:40:02 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2021-02-01 21:32:32 +0300 |
commit | 93f479d3ad05497f29f2bed58e4a6c6a4f0a548c (patch) | |
tree | ce0e4553d554d2b5085a4c1a98f31d3f973a6247 /net/sunrpc/xprtsock.c | |
parent | c0da04ae079fb4979b921f8b46a6eeb15a4f803c (diff) | |
download | linux-93f479d3ad05497f29f2bed58e4a6c6a4f0a548c.tar.xz |
SUNRPC: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
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 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index e1ed21d45cdb..e35760f238a4 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -1875,6 +1875,7 @@ static int xs_local_setup_socket(struct sock_xprt *transport) xprt->stat.connect_time += (long)jiffies - xprt->stat.connect_start; xprt_set_connected(xprt); + break; case -ENOBUFS: break; case -ENOENT: |