Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Xichao Zhao and committed by
Greg Kroah-Hartman
b570b346 5195edb3

+1 -2
+1 -2
drivers/usb/phy/phy-twl6030-usb.c
··· 328 328 329 329 static int twl6030_usb_probe(struct platform_device *pdev) 330 330 { 331 - u32 ret; 332 331 struct twl6030_usb *twl; 333 - int status, err; 332 + int status, err, ret; 334 333 struct device_node *np = pdev->dev.of_node; 335 334 struct device *dev = &pdev->dev; 336 335