mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 20:56:12 +02:00
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 <andrew.goodbody@linaro.org> Reviewed-by: Marek Vasut <marek.vasut@mailbox.org>
This commit is contained in:
parent
23987e1090
commit
e41e6feb3d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user