mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
usb: ohci-spear: Remove unnecessary NULL check before clk_disable_unprepare()
clk_disable_unprepare() already checks NULL by using IS_ERR_OR_NULL. Remove unneeded NULL check for clk here. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20250617042050.1930940-1-nichen@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8fa23514f2
commit
a891b9aebc
|
|
@ -103,8 +103,7 @@ static void spear_ohci_hcd_drv_remove(struct platform_device *pdev)
|
|||
struct spear_ohci *sohci_p = to_spear_ohci(hcd);
|
||||
|
||||
usb_remove_hcd(hcd);
|
||||
if (sohci_p->clk)
|
||||
clk_disable_unprepare(sohci_p->clk);
|
||||
clk_disable_unprepare(sohci_p->clk);
|
||||
|
||||
usb_put_hcd(hcd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user