summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/conn_client.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-08-01 17:52:34 +0800
committerDavid Howells <dhowells@redhat.com>2018-08-01 13:28:23 +0100
commitf597a5792ada511e3c69ecf7201fc178c574d822 (patch)
tree60bc5c7e8754ffc0a419817e778252d978f50076 /net/rxrpc/conn_client.c
parente6476c21447c4b17c47e476aade6facf050f31e8 (diff)
downloadlinux-stable-f597a5792ada511e3c69ecf7201fc178c574d822.tar.gz
linux-stable-f597a5792ada511e3c69ecf7201fc178c574d822.tar.bz2
linux-stable-f597a5792ada511e3c69ecf7201fc178c574d822.zip
rxrpc: remove redundant variables 'sp' and 'did_discard'
Variables 'sp' and 'did_discard' are being assigned, but are never used, hence they are redundant and can be removed. fix following warning: net/rxrpc/call_event.c:165:25: warning: variable 'sp' set but not used [-Wunused-but-set-variable] net/rxrpc/conn_client.c:1054:7: warning: variable 'did_discard' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/conn_client.c')
-rw-r--r--net/rxrpc/conn_client.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/rxrpc/conn_client.c b/net/rxrpc/conn_client.c
index 5736f643c516..e4bfbd7e48a8 100644
--- a/net/rxrpc/conn_client.c
+++ b/net/rxrpc/conn_client.c
@@ -1051,7 +1051,6 @@ void rxrpc_discard_expired_client_conns(struct work_struct *work)
container_of(work, struct rxrpc_net, client_conn_reaper);
unsigned long expiry, conn_expires_at, now;
unsigned int nr_conns;
- bool did_discard = false;
_enter("");
@@ -1113,7 +1112,6 @@ next:
* If someone re-sets the flag and re-gets the ref, that's fine.
*/
rxrpc_put_connection(conn);
- did_discard = true;
nr_conns--;
goto next;