projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fa2351
)
usb: ohci-spear: Remove unnecessary NULL check before clk_disable_unprepare()
author
Chen Ni
<nichen@iscas.ac.cn>
Tue, 17 Jun 2025 04:20:50 +0000
(12:20 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 10:27:26 +0000
(12:27 +0200)
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>
drivers/usb/host/ohci-spear.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/host/ohci-spear.c
b/drivers/usb/host/ohci-spear.c
index d7131e5a4477c44aaf760029e2c7b2f4d4019e8e..6843d7cb3f9f37bc60e6c374202689f21d2cc879 100644
(file)
--- a/
drivers/usb/host/ohci-spear.c
+++ b/
drivers/usb/host/ohci-spear.c
@@
-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);
}