]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: ch9200: use kmemdup
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Thu, 19 May 2016 13:56:50 +0000 (19:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 May 2016 23:50:07 +0000 (19:50 -0400)
commit1688517bfceb9a2da941a59f4ecf3edf05e6d792
treea77c7a32e66c9c9961cb7ef8eab2995ab5a7cda3
parent6a97bc45343e0b8f02b437b09cc117005fb56878
net: usb: ch9200: use kmemdup

Use kmemdup when some other buffer is immediately copied into allocated
region. It replaces call to allocation followed by memcpy, by a single
call to kmemdup.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/ch9200.c