diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-10-11 17:32:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-16 01:08:17 -0400 |
commit | d6672a5a97918f92bf2f3a2591f25d02bb0897a4 (patch) | |
tree | c43c74539fbe59ddbc5d3ef773ed1262680285ff | |
parent | d7b4c24f45d2efe51b8f213da4593fefd49240ba (diff) |
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: ece64fec164f ("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>
-rw-r--r-- | net/rxrpc/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/output.c b/net/rxrpc/output.c index e8fb8922bca8..a141ee3ab812 100644 --- a/net/rxrpc/output.c +++ b/net/rxrpc/output.c | |||
@@ -572,7 +572,8 @@ void rxrpc_reject_packets(struct rxrpc_local *local) | |||
572 | whdr.flags ^= RXRPC_CLIENT_INITIATED; | 572 | whdr.flags ^= RXRPC_CLIENT_INITIATED; |
573 | whdr.flags &= RXRPC_CLIENT_INITIATED; | 573 | whdr.flags &= RXRPC_CLIENT_INITIATED; |
574 | 574 | ||
575 | ret = kernel_sendmsg(local->socket, &msg, iov, 2, size); | 575 | ret = kernel_sendmsg(local->socket, &msg, |
576 | iov, ioc, size); | ||
576 | if (ret < 0) | 577 | if (ret < 0) |
577 | trace_rxrpc_tx_fail(local->debug_id, 0, ret, | 578 | trace_rxrpc_tx_fail(local->debug_id, 0, ret, |
578 | rxrpc_tx_point_reject); | 579 | rxrpc_tx_point_reject); |