projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
staging: netlogic: replace skb_put/pull pair with skb_reserve
[linux-2.6-microblaze.git]
/
drivers
/
staging
/
netlogic
/
xlr_net.c
diff --git
a/drivers/staging/netlogic/xlr_net.c
b/drivers/staging/netlogic/xlr_net.c
index
10f14a5
..
1897b71
100644
(file)
--- a/
drivers/staging/netlogic/xlr_net.c
+++ b/
drivers/staging/netlogic/xlr_net.c
@@
-87,8
+87,7
@@
static inline unsigned char *xlr_alloc_skb(void)
if (!skb)
return NULL;
skb_data = skb->data;
- skb_put(skb, MAC_SKB_BACK_PTR_SIZE);
- skb_pull(skb, MAC_SKB_BACK_PTR_SIZE);
+ skb_reserve(skb, MAC_SKB_BACK_PTR_SIZE);
memcpy(skb_data, &skb, buf_len);
return skb->data;