mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 12:14:01 +08:00
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>
This commit is contained in:
parent
b5fdf8418c
commit
68e9a2463d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user