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
usb: cdc-wdm: Use skb_put_data() instead of skb_put/memcpy pair
[linux-2.6-microblaze.git]
/
drivers
/
usb
/
class
/
cdc-wdm.c
diff --git
a/drivers/usb/class/cdc-wdm.c
b/drivers/usb/class/cdc-wdm.c
index
eebe782
..
1f0951b
100644
(file)
--- a/
drivers/usb/class/cdc-wdm.c
+++ b/
drivers/usb/class/cdc-wdm.c
@@
-958,7
+958,7
@@
static void wdm_wwan_rx(struct wdm_device *desc, int length)
if (!skb)
return;
-
memcpy(skb_put(skb, length)
, desc->inbuf, length);
+
skb_put_data(skb
, desc->inbuf, length);
wwan_port_rx(port, skb);
/* inbuf has been copied, it is safe to check for outstanding data */