diff options
author | David Howells <dhowells@redhat.com> | 2016-09-30 14:26:03 +0200 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-30 15:39:28 +0200 |
commit | 775e5b71db6aca47d49d43d08751f2e8ebad7f60 (patch) | |
tree | 54beb3163dd5d3184d55cf8c46ae60fed3cbb963 /net/rxrpc/local_event.c | |
parent | rxrpc: Reduce ssthresh to peer's receive window (diff) | |
download | linux-775e5b71db6aca47d49d43d08751f2e8ebad7f60.tar.xz linux-775e5b71db6aca47d49d43d08751f2e8ebad7f60.zip |
rxrpc: The offset field in struct rxrpc_skb_priv is unnecessary
The offset field in struct rxrpc_skb_priv is unnecessary as the value can
always be calculated.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/local_event.c')
-rw-r--r-- | net/rxrpc/local_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/local_event.c b/net/rxrpc/local_event.c index 190f68bd9e27..540d3955c1bc 100644 --- a/net/rxrpc/local_event.c +++ b/net/rxrpc/local_event.c @@ -95,7 +95,8 @@ void rxrpc_process_local_events(struct rxrpc_local *local) switch (sp->hdr.type) { case RXRPC_PACKET_TYPE_VERSION: - if (skb_copy_bits(skb, sp->offset, &v, 1) < 0) + if (skb_copy_bits(skb, sizeof(struct rxrpc_wire_header), + &v, 1) < 0) return; _proto("Rx VERSION { %02x }", v); if (v == 0) |