From: Fabio Estevam Date: Sat, 28 May 2016 01:37:10 +0000 (-0300) Subject: cmd: usb_mass_storage: Use NULL for pointer X-Git-Tag: v2017.07-rc2~2^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d419026a0275bf0a17367d414ca2e891f3c3386b;p=u-boot 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 --- 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; }