Skip to content
Commit d410912e authored by Tang Bin's avatar Tang Bin Committed by Felipe Balbi
Browse files

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: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 2655971a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment