Commit 68e9a246 authored by Colin Ian King's avatar Colin Ian King Committed by Trond Myklebust

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent b5fdf841
...@@ -1970,7 +1970,7 @@ static int xs_local_setup_socket(struct sock_xprt *transport) ...@@ -1970,7 +1970,7 @@ static int xs_local_setup_socket(struct sock_xprt *transport)
struct rpc_xprt *xprt = &transport->xprt; struct rpc_xprt *xprt = &transport->xprt;
struct file *filp; struct file *filp;
struct socket *sock; struct socket *sock;
int status = -EIO; int status;
status = __sock_create(xprt->xprt_net, AF_LOCAL, status = __sock_create(xprt->xprt_net, AF_LOCAL,
SOCK_STREAM, 0, &sock, 1); SOCK_STREAM, 0, &sock, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment