]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: tegra: Fix unnecessary check in tegra_usb_phy_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 28 May 2020 11:47:17 +0000 (19:47 +0800)
committerFelipe Balbi <balbi@kernel.org>
Wed, 24 Jun 2020 06:43:16 +0000 (09:43 +0300)
commit2bdf7804c6058cacf4a7e963899386d9308ec211
tree2a5dbda6e7dcedf39c15a63e5d5ffa327b3f626f
parent629261543bb90c5a7397945a61a82ddeef11e64f
usb: phy: tegra: Fix unnecessary check in tegra_usb_phy_probe()

In the function tegra_usb_phy_probe(), if usb_add_phy_dev() failed,
the return value will be given to err, and if usb_add_phy_dev() succeed,
the return value will be zero. Thus it is unnecessary to repeated check
here.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/phy/phy-tegra-usb.c