summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Goodbody <[email protected]>2025-09-29 17:53:11 +0100
committerMarek Vasut <[email protected]>2025-10-28 16:33:15 +0100
commite41e6feb3d3b33f0793df6a1d9da20c8096a346e (patch)
tree0f297c6c2e334d929f18d2bb72e55d28196f0c89
parent23987e10905146def3ab61e55ec912c6e742efdc (diff)
usb: ehci: exynos: variable node should be signed
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 <[email protected]> Reviewed-by: Marek Vasut <[email protected]>
-rw-r--r--drivers/usb/host/ehci-exynos.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
index 1e4a5a0b6f6..e1fc04efd2e 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