Skip to content
Commit b8203ec7 authored by Yang Li's avatar Yang Li Committed by Vinod Koul
Browse files

phy: ti: Fix an error code in wiz_probe()



When the code execute this if statement, the value of ret is 0.
However, we can see from the dev_err() log that the value of
ret should be -EINVAL.

Clean up smatch warning:

drivers/phy/ti/phy-j721e-wiz.c:1216 wiz_probe() warn: missing error code 'ret'

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Fixes: c9f9eba0

 ("phy: ti: j721e-wiz: Manage typec-gpio-dir")
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1621939832-65535-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent aaac9a1b
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