diff options
author | David Howells <dhowells@redhat.com> | 2016-09-30 13:26:03 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-09-30 14:39:28 +0100 |
commit | 775e5b71db6aca47d49d43d08751f2e8ebad7f60 (patch) | |
tree | 54beb3163dd5d3184d55cf8c46ae60fed3cbb963 /net/rxrpc/local_event.c | |
parent | 0851115090a3eb9585d6a804a61e47f3d89ac2a8 (diff) |
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) |