]> git.karo-electronics.de Git - linux-beck.git/commit
usb: Use memdup_user to reuse the code
authorRahul Pathak <rpathak@visteon.com>
Fri, 11 Dec 2015 05:40:51 +0000 (05:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jan 2016 03:45:09 +0000 (19:45 -0800)
commit73a02d32458ecff5b6241e7e7bd6445f70400bad
tree672ef20a15ed376922c912593be4ee5e3f47a04a
parent64f10edf0751727154e843e8bcf59fb659e579a2
usb: Use memdup_user to reuse the code

Fixing coccicheck warning which recommends to use memdup_user instead
to reimplement its code, using memdup_user simplifies the code

./drivers/usb/core/devio.c:1398:11-18: WARNING opportunity for memdup_user

Signed-off-by: Rahul Pathak <rpathak@visteon.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c