Skip to content

Commit 08134ab

Browse files
Xichao ZhaoUlrich Hecht
authored andcommitted
usb: phy: twl6030: Fix incorrect type for ret
[ Upstream commit b570b346ddd727c4b41743a6a2f49e7217c5317f ] In the twl6030_usb_probe(), the variable ret is declared as a u32 type. However, since ret may receive -ENODEV when accepting the return value of omap_usb2_set_comparator().Therefore, its type should be changed to int. Fixes: 0e98de6 ("usb: otg: make twl6030_usb as a comparator driver to omap_usb2") Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com> Link: https://lore.kernel.org/r/20250822092224.30645-1-zhao.xichao@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Ulrich Hecht <uli@kernel.org>
1 parent 7e59c60 commit 08134ab

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/usb/phy/phy-twl6030-usb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,8 @@ static int twl6030_set_vbus(struct phy_companion *comparator, bool enabled)
322322

323323
static int twl6030_usb_probe(struct platform_device *pdev)
324324
{
325-
u32 ret;
326325
struct twl6030_usb *twl;
327-
int status, err;
326+
int status, err, ret;
328327
struct device_node *np = pdev->dev.of_node;
329328
struct device *dev = &pdev->dev;
330329

0 commit comments

Comments
 (0)