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/conn_event.c | |
parent | 0851115090a3eb9585d6a804a61e47f3d89ac2a8 (diff) | |
download | linux-stable-775e5b71db6aca47d49d43d08751f2e8ebad7f60.tar.gz linux-stable-775e5b71db6aca47d49d43d08751f2e8ebad7f60.tar.bz2 linux-stable-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/conn_event.c')
-rw-r--r-- | net/rxrpc/conn_event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/conn_event.c b/net/rxrpc/conn_event.c index 37609ce89f52..3f9d8d7ec632 100644 --- a/net/rxrpc/conn_event.c +++ b/net/rxrpc/conn_event.c @@ -276,7 +276,8 @@ static int rxrpc_process_event(struct rxrpc_connection *conn, return 0; case RXRPC_PACKET_TYPE_ABORT: - if (skb_copy_bits(skb, sp->offset, &wtmp, sizeof(wtmp)) < 0) + if (skb_copy_bits(skb, sizeof(struct rxrpc_wire_header), + &wtmp, sizeof(wtmp)) < 0) return -EPROTO; abort_code = ntohl(wtmp); _proto("Rx ABORT %%%u { ac=%d }", sp->hdr.serial, abort_code); |