USB: ohci-sm501: remove unnecessary check of mem
The resource is checked in probe function, so there is no need do this check in remove function. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20230809085348.2761782-1-yangyingliang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bb8dc3df68
commit
3ddde5aa43
@ -195,7 +195,6 @@ static void ohci_hcd_sm501_drv_remove(struct platform_device *pdev)
|
||||
release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
|
||||
usb_put_hcd(hcd);
|
||||
mem = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
||||
if (mem)
|
||||
release_mem_region(mem->start, resource_size(mem));
|
||||
|
||||
/* mask interrupts and disable power */
|
||||
|
Loading…
Reference in New Issue
Block a user