projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6188752
)
cmd: usb_mass_storage: Use NULL for pointer
author
Fabio Estevam
<fabio.estevam@nxp.com>
Sat, 28 May 2016 01:37:10 +0000
(22:37 -0300)
committer
Lukasz Majewski
<lukma@denx.de>
Sun, 18 Jun 2017 19:11:10 +0000
(21:11 +0200)
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>
cmd/usb_mass_storage.c
patch
|
blob
|
history
diff --git
a/cmd/usb_mass_storage.c
b/cmd/usb_mass_storage.c
index 86398fc24e8bf799887d46a60fb4b2b091cba98f..cb5260b558c4227b8e5e0018a7f4150e436db76f 100644
(file)
--- a/
cmd/usb_mass_storage.c
+++ b/
cmd/usb_mass_storage.c
@@
-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;
}