usb: gadget: Use kmemdup instead of kmalloc + memcpy

This issue was reported by coccicheck using the semantic patch
at scripts/coccinelle/api/memdup.cocci

Signed-off-by: Benoit Taine <benoit.taine@lip6.fr>
Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
Benoit Taine 2014-05-26 17:21:20 +02:00 • committed by Felipe Balbi
commit 58b949e084
2 changed files with 2 additions and 5 deletions