]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: dwc2: Remove unnecessary kfree
authorJohn Youn <johnyoun@synopsys.com>
Fri, 4 Nov 2016 00:55:45 +0000 (17:55 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:10 +0000 (13:54 +0200)
This shouldn't be freed by the HCD as it is owned by the core and
allocated with devm_kzalloc.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hcd.c

index df5a065780054f21841ca9f08b8ab118922c530b..1b6f5e1cf31ab3af69a16ed50564595b8822572f 100644 (file)
@@ -5184,7 +5184,6 @@ error3:
 error2:
        usb_put_hcd(hcd);
 error1:
-       kfree(hsotg->core_params);
 
 #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
        kfree(hsotg->last_frame_num_array);