staging: cxt1e1: Avoid using 0 instead of NULL
authorThomas Vegas <thomas_75@safe-mail.net>
Sat, 26 Apr 2014 09:20:09 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Apr 2014 15:42:54 +0000 (08:42 -0700)
Fixed the following sparse warnings:

drivers/staging/cxt1e1/hwprobe.c:162:38:
warning: Using plain integer as NULL pointer
drivers/staging/cxt1e1/hwprobe.c:163:38:
warning: Using plain integer as NULL pointer
drivers/staging/cxt1e1/hwprobe.c:179:46:
warning: Using plain integer as NULL pointer
drivers/staging/cxt1e1/hwprobe.c:184:46:
warning: Using plain integer as NULL pointer

Signed-off-by: Thomas Vegas <thomas_75@safe-mail.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/cxt1e1/hwprobe.c

index cc2151e0acd7ca3297fc3f16039404db7bad6444..4fa27c8931b1ae41ed75830baebba680bd7286dc 100644 (file)
@@ -159,8 +159,8 @@ prep_hdw_info(void)
                hi->ndev = NULL;
                hi->addr[0] = 0L;
                hi->addr[1] = 0L;
-               hi->addr_mapped[0] = 0L;
-               hi->addr_mapped[1] = 0L;
+               hi->addr_mapped[0] = NULL;
+               hi->addr_mapped[1] = NULL;
        }
 }
 
@@ -176,12 +176,12 @@ cleanup_ioremap(void)
                if (hi->addr_mapped[0]) {
                        iounmap(hi->addr_mapped[0]);
                        release_mem_region((long) hi->addr[0], hi->len[0]);
-                       hi->addr_mapped[0] = 0;
+                       hi->addr_mapped[0] = NULL;
                }
                if (hi->addr_mapped[1]) {
                        iounmap(hi->addr_mapped[1]);
                        release_mem_region((long) hi->addr[1], hi->len[1]);
-                       hi->addr_mapped[1] = 0;
+                       hi->addr_mapped[1] = NULL;
                }
        }
 }