]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: ohci-spear: Remove unnecessary NULL check before clk_disable_unprepare()
authorChen Ni <nichen@iscas.ac.cn>
Tue, 17 Jun 2025 04:20:50 +0000 (12:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 10:27:26 +0000 (12:27 +0200)
commita891b9aebcc7406fe2f439d184bac3948fb08645
treeb031fb06a9c8ca429c281fc4bed06bedc0e596ca
parent8fa23514f2d73193d2418f1913028c54adaf3cd5
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>
drivers/usb/host/ohci-spear.c