From: John Youn Date: Fri, 4 Nov 2016 00:55:45 +0000 (-0700) Subject: usb: dwc2: Remove unnecessary kfree X-Git-Tag: v4.10-rc1~150^2~57^2~75 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cd4b1e34655d46950c065d9284b596cd8d7b28cd;p=karo-tx-linux.git usb: dwc2: Remove unnecessary kfree 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index df5a06578005..1b6f5e1cf31a 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -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);