[media] video/cx231xx: Fix sparse warning: Using plain integer as NULL pointer
[firefly-linux-kernel-4.4.55.git] / drivers / media / video / cx231xx / cx231xx-417.c
index fc9526a5b7469483203b2e776c0cb3f05735f614..f8f0e59cd58389fe6c8fbdd5ee8c8e294e25a9ea 100644 (file)
@@ -942,13 +942,13 @@ static int cx231xx_load_firmware(struct cx231xx *dev)
 
        p_current_fw = vmalloc(1884180 * 4);
        p_fw = p_current_fw;
-       if (p_current_fw == 0) {
+       if (p_current_fw == NULL) {
                dprintk(2, "FAIL!!!\n");
                return -1;
        }
 
        p_buffer = vmalloc(4096);
-       if (p_buffer == 0) {
+       if (p_buffer == NULL) {
                dprintk(2, "FAIL!!!\n");
                return -1;
        }