mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
0851115090
commit
775e5b71db
6 changed files with 24 additions and 21 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue