]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: use correct kvec num when sending BUSY response packet
authorYueHaibing <yuehaibing@huawei.com>
Thu, 11 Oct 2018 21:32:39 +0000 (22:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:08:17 +0000 (22:08 -0700)
commitda8f87b04e660edef84704333ec159fadd770369
treec43c74539fbe59ddbc5d3ef773ed1262680285ff
parente0470724792982d1af04edf8bb7c0897098f020d
rxrpc: use correct kvec num when sending BUSY response packet

Fixes gcc '-Wunused-but-set-variable' warning:

net/rxrpc/output.c: In function 'rxrpc_reject_packets':
net/rxrpc/output.c:527:11: warning:
 variable 'ioc' set but not used [-Wunused-but-set-variable]

'ioc' is the correct kvec num when sending a BUSY (or an ABORT) response
packet.

Fixes: b5136173b2a4 ("rxrpc: Emit BUSY packets when supposed to rather than ABORTs")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/output.c