usb: gadget: lpc32xx_udc: Cocci spatch "memdup.spatch"
Subsystems (2)
PATCH 1/1 usb: gadget: lpc32xx_udc: Cocci spatch "memdup.spatch"
Signed-off-by Thomas Meyer <[email protected]>
---
drivers/usb/gadget/lpc32xx_udc.c +1 -2
@@ -3046,11 +3046,10 @@ static int __init lpc32xx_udc_probe(strudma_addr_t dma_handle;struct device_node *isp1301_node; - udc =kzalloc (sizeof (*udc),GFP_KERNEL ); + udc =kmemdup (&controller_template,sizeof (*udc),GFP_KERNEL );if (!udc)return -ENOMEM ; -memcpy (udc, &controller_template,sizeof (*udc));for (i =0 ; i <=15 ; i++) udc->ep[i].udc = udc; udc->gadget.ep0 = &udc->ep[0 ].ep;
Quoted 1 line · Thomas Meyer
-ENOLOG
please add a commit log.
Quoted 21 lines
Signed-off-by Thomas Meyer <[email protected]>---
diff -u -p
a/drivers/usb/gadget/lpc32xx_udc.cb/drivers/usb/gadget/lpc32xx_udc.cdrivers/usb/gadget/lpc32xx_udc.c +1
-2@@ -3046,11 +3046,10 @@ static int __init lpc32xx_udc_probe(strudma_addr_t dma_handle;struct device_node *isp1301_node; - udc =kzalloc (sizeof (*udc),GFP_KERNEL ); + udc =kmemdup (&controller_template,sizeof (*udc),GFP_KERNEL );if (!udc)return -ENOMEM ; -memcpy (udc, &controller_template,sizeof (*udc));for (i =0 ; i <=15 ; i++) udc->ep[i].udc = udc; udc->gadget.ep0 = &udc->ep[0 ].ep;
Signature · 1 line
balbi