mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02: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:
committed by
Lukasz Majewski
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user