aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-02-28 23:44:14 +0000
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-03-16 10:10:36 -0400
commit68e9a2463d08f870abf8edfe9125b7738f7a63ce (patch)
tree2252bfa1748bd3c09df96d497cad772e656c1352 /net/sunrpc/xprtsock.c
parentb5fdf8418c370d69e8b2d3588e0cf2a375ab26c1 (diff)
downloadlinux-68e9a2463d08f870abf8edfe9125b7738f7a63ce.tar.gz
SUNRPC: remove redundant assignments to variable status
The variable status is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index d86c664ea6afc..c9e039961e29e 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1970,7 +1970,7 @@ static int xs_local_setup_socket(struct sock_xprt *transport)
struct rpc_xprt *xprt = &transport->xprt;
struct file *filp;
struct socket *sock;
- int status = -EIO;
+ int status;
status = __sock_create(xprt->xprt_net, AF_LOCAL,
SOCK_STREAM, 0, &sock, 1);