瀏覽代碼

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 <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
John Youn 9 年之前
父節點
當前提交
cd4b1e3465
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/usb/dwc2/hcd.c

+ 0 - 1
drivers/usb/dwc2/hcd.c

@@ -5184,7 +5184,6 @@ error3:
 error2:
 error2:
 	usb_put_hcd(hcd);
 	usb_put_hcd(hcd);
 error1:
 error1:
-	kfree(hsotg->core_params);
 
 
 #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
 #ifdef CONFIG_USB_DWC2_TRACK_MISSED_SOFS
 	kfree(hsotg->last_frame_num_array);
 	kfree(hsotg->last_frame_num_array);