Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Chen Ni and committed by
Greg Kroah-Hartman
5cf4f055 73fb0ec9

+2 -4
+2 -4
drivers/usb/gadget/udc/renesas_usb3.c
··· 2397 2397 rzv2m_usb3drd_reset(usb3_to_dev(usb3)->parent, false); 2398 2398 2399 2399 renesas_usb3_stop_controller(usb3); 2400 - if (usb3->phy) 2401 - phy_exit(usb3->phy); 2400 + phy_exit(usb3->phy); 2402 2401 2403 2402 pm_runtime_put(usb3_to_dev(usb3)); 2404 2403 ··· 2983 2984 return 0; 2984 2985 2985 2986 renesas_usb3_stop_controller(usb3); 2986 - if (usb3->phy) 2987 - phy_exit(usb3->phy); 2987 + phy_exit(usb3->phy); 2988 2988 pm_runtime_put(dev); 2989 2989 2990 2990 return 0;