mirror of https://gitee.com/openkylin/linux.git
usb: host: xhci-plat: Remove useless test before clk_disable_unprepare
clk_disable_unprepare() already checks that the clock pointer is valid. No need to test it before calling it. Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e8374db154
commit
3e29109f51
|
@ -320,7 +320,6 @@ static int xhci_plat_probe(struct platform_device *pdev)
|
||||||
usb_put_hcd(xhci->shared_hcd);
|
usb_put_hcd(xhci->shared_hcd);
|
||||||
|
|
||||||
disable_clk:
|
disable_clk:
|
||||||
if (!IS_ERR(clk))
|
|
||||||
clk_disable_unprepare(clk);
|
clk_disable_unprepare(clk);
|
||||||
|
|
||||||
put_hcd:
|
put_hcd:
|
||||||
|
@ -347,7 +346,6 @@ static int xhci_plat_remove(struct platform_device *dev)
|
||||||
usb_remove_hcd(hcd);
|
usb_remove_hcd(hcd);
|
||||||
usb_put_hcd(xhci->shared_hcd);
|
usb_put_hcd(xhci->shared_hcd);
|
||||||
|
|
||||||
if (!IS_ERR(clk))
|
|
||||||
clk_disable_unprepare(clk);
|
clk_disable_unprepare(clk);
|
||||||
usb_put_hcd(hcd);
|
usb_put_hcd(hcd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue