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>
This commit is contained in:

committed by
David Howells

parent
e6476c2144
commit
f597a5792a
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user