mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
cmd: usb_mass_storage: Use NULL for pointer
Use NULL for pointer to fix the following sparse warning: cmd/usb_mass_storage.c:47:15: warning: Using plain integer as NULL pointer Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
This commit is contained in:
parent
6188752187
commit
d419026a02
@ -44,7 +44,7 @@ static void ums_fini(void)
|
||||
for (i = 0; i < ums_count; i++)
|
||||
free((void *)ums[i].name);
|
||||
free(ums);
|
||||
ums = 0;
|
||||
ums = NULL;
|
||||
ums_count = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user