mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net/*: use linux/kernel.h swap()
tcp_sack_swap seems unnecessary so I pushed swap to the caller. Also removed comment that seemed then pointless, and added include when not already there. Compile tested. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a3ac80a130
commit
a0bffffc14
4 changed files with 8 additions and 37 deletions
|
@ -380,7 +380,6 @@ static int dn_return_short(struct sk_buff *skb)
|
|||
unsigned char *ptr;
|
||||
__le16 *src;
|
||||
__le16 *dst;
|
||||
__le16 tmp;
|
||||
|
||||
/* Add back headers */
|
||||
skb_push(skb, skb->data - skb_network_header(skb));
|
||||
|
@ -399,10 +398,7 @@ static int dn_return_short(struct sk_buff *skb)
|
|||
ptr += 2;
|
||||
*ptr = 0; /* Zero hop count */
|
||||
|
||||
/* Swap source and destination */
|
||||
tmp = *src;
|
||||
*src = *dst;
|
||||
*dst = tmp;
|
||||
swap(*src, *dst);
|
||||
|
||||
skb->pkt_type = PACKET_OUTGOING;
|
||||
dn_rt_finish_output(skb, NULL, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue