diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2016-05-27 22:37:10 -0300 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2017-06-18 21:11:10 +0200 |
commit | d419026a0275bf0a17367d414ca2e891f3c3386b (patch) | |
tree | f684f1238ca62ff31b3fe30cb5cf45dab9da8b35 /cmd/usb_mass_storage.c | |
parent | 61887521874e888cda4bdd8d78f698a2938b467e (diff) |
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>
Diffstat (limited to 'cmd/usb_mass_storage.c')
-rw-r--r-- | cmd/usb_mass_storage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c index 86398fc24e..cb5260b558 100644 --- 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; } |