diff options
| author | Andrew Goodbody <[email protected]> | 2025-09-30 11:34:44 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2025-10-28 16:33:15 +0100 |
| commit | adcec085e0dd3e399e6ee5ab5a7dd0e3cd192316 (patch) | |
| tree | ceedb28c6efbce9ce809b1b60e37bcb4d839ef7d /drivers | |
| parent | dd01b0541be38894c05f0dad2dad135ef1a9da6b (diff) | |
usb: xhci: 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]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/usb/host/xhci-exynos5.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c index 6a2d422c4b8..c509ce1620a 100644 --- a/drivers/usb/host/xhci-exynos5.c +++ b/drivers/usb/host/xhci-exynos5.c @@ -56,8 +56,7 @@ static int xhci_usb_of_to_plat(struct udevice *dev) { struct exynos_xhci_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 |
