[PATCH] usb: ehci: exynos: variable node should be signed
Andrew Goodbody
andrew.goodbody at linaro.org
Mon Sep 29 18:53:11 CEST 2025
THe variable node is assigned to the return value of a function that
returns an int. It is tested for being negative and then passed as an
argument to a function that takes an int. So 'node' should not be
declared as unsigned. Correct it.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
---
drivers/usb/host/ehci-exynos.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
index 1e4a5a0b6f6ce3ff7e14ec16a5250eddb5a13139..e1fc04efd2e986f11eb2e3add74da84dce74f208 100644
--- a/drivers/usb/host/ehci-exynos.c
+++ b/drivers/usb/host/ehci-exynos.c
@@ -47,8 +47,7 @@ static int ehci_usb_of_to_plat(struct udevice *dev)
{
struct exynos_ehci_plat *plat = dev_get_plat(dev);
const void *blob = gd->fdt_blob;
- unsigned int node;
- int depth;
+ int node, depth;
/*
* Get the base address for XHCI controller from the device node
---
base-commit: 9710d98e8942151fc0c62d54100d9d27e8263d04
change-id: 20250929-ehci_exynos-c703167dac21
Best regards,
--
Andrew Goodbody <andrew.goodbody at linaro.org>
More information about the U-Boot
mailing list