]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: phy: twl6030: Fix incorrect type for ret
authorXichao Zhao <zhao.xichao@vivo.com>
Fri, 22 Aug 2025 09:22:24 +0000 (17:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:21:45 +0000 (15:21 +0200)
commitb570b346ddd727c4b41743a6a2f49e7217c5317f
tree26408a7c5add419df2193ce916ee9513af86a0cc
parent5195edb359855d9a6460f19b7c3915a8611fceed
usb: phy: twl6030: Fix incorrect type for ret

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: 0e98de67bacba ("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>
drivers/usb/phy/phy-twl6030-usb.c