]> git.baikalelectronics.ru Git - kernel.git/commit
phy: ti: Fix an error code in wiz_probe()
authorYang Li <yang.lee@linux.alibaba.com>
Tue, 25 May 2021 10:50:32 +0000 (18:50 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 31 May 2021 08:41:44 +0000 (14:11 +0530)
commit364007846ee94e7c71afa673af72b7f7ac0fd12e
treecd7d1801be81d964e35a2bf94cb4c40059e253e3
parentcb700934b3ce3cd1bdfc58c8ee186b97d56bb433
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: Abaci Robot <abaci@linux.alibaba.com>
Fixes: ff0b78767c76 ("phy: ti: j721e-wiz: Manage typec-gpio-dir")
Signed-off-by: Yang 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: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-j721e-wiz.c