From: Colin Ian King Date: Fri, 28 Feb 2020 23:44:14 +0000 (+0000) Subject: SUNRPC: remove redundant assignments to variable status X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~2394^2~54 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=68e9a2463d08f870abf8edfe9125b7738f7a63ce;p=linux.git 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 Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index d86c664ea6af..c9e039961e29 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);