OSDN Git Service

rxrpc: remove redundant variables 'sp' and 'did_discard'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 1 Aug 2018 09:52:34 +0000 (17:52 +0800)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 Aug 2018 12:28:23 +0000 (13:28 +0100)
commitf597a5792ada511e3c69ecf7201fc178c574d822
tree60bc5c7e8754ffc0a419817e778252d978f50076
parente6476c21447c4b17c47e476aade6facf050f31e8
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>
net/rxrpc/call_event.c
net/rxrpc/conn_client.c