]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: usb_mass_storage: Use NULL for pointer
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 28 May 2016 01:37:10 +0000 (22:37 -0300)
committerLukasz 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

index 86398fc24e8bf799887d46a60fb4b2b091cba98f..cb5260b558c4227b8e5e0018a7f4150e436db76f 100644 (file)
@@ -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;
 }