mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
usb: gadget: udc: renesas_usb3: remove unnecessary NULL check before phy_exit()
phy_exit() checks for NULL pointers internally. Remove unneeded NULL check here. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Link: https://lore.kernel.org/r/20250422073714.1334380-1-nichen@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
73fb0ec943
commit
5cf4f055c5
|
|
@ -2397,8 +2397,7 @@ static int renesas_usb3_stop(struct usb_gadget *gadget)
|
|||
rzv2m_usb3drd_reset(usb3_to_dev(usb3)->parent, false);
|
||||
|
||||
renesas_usb3_stop_controller(usb3);
|
||||
if (usb3->phy)
|
||||
phy_exit(usb3->phy);
|
||||
phy_exit(usb3->phy);
|
||||
|
||||
pm_runtime_put(usb3_to_dev(usb3));
|
||||
|
||||
|
|
@ -2984,8 +2983,7 @@ static int renesas_usb3_suspend(struct device *dev)
|
|||
return 0;
|
||||
|
||||
renesas_usb3_stop_controller(usb3);
|
||||
if (usb3->phy)
|
||||
phy_exit(usb3->phy);
|
||||
phy_exit(usb3->phy);
|
||||
pm_runtime_put(dev);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user