SUNRPC: remove redundant assignments to variable status
Subsystems (5)
PATCH 1/1 SUNRPC: remove redundant assignments to variable status
From: Colin Ian King <[email protected]>
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 <[email protected]>
--- net/sunrpc/xprtsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/sunrpc/xprtsock.c +1 -1
@@ -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 );
Signature · 1 line
2.25.0