]> git.sur5r.net Git - u-boot/commitdiff
fpga: zynq: Remove sparse warnings
authorMichal Simek <michal.simek@xilinx.com>
Fri, 25 Apr 2014 11:51:58 +0000 (13:51 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 13 May 2014 07:14:04 +0000 (09:14 +0200)
Warnings:
drivers/fpga/zynqpl.c:150:32: warning: Using plain integer as NULL pointer
drivers/fpga/zynqpl.c:152:16: warning: Using plain integer as NULL pointer

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/fpga/zynqpl.c

index dcd34951ad68f727ddb482ab2079c52c151ac227..0a134e524c4452088cbb82dc716949e28b74e148 100644 (file)
@@ -147,9 +147,9 @@ static void *check_data(u8 *buf, size_t bsize, u32 *swap)
                }
                /* Loop can be huge - support CTRL + C */
                if (ctrlc())
-                       return 0;
+                       return NULL;
        }
-       return 0;
+       return NULL;
 }
 
 static int zynq_load(xilinx_desc *desc, const void *buf, size_t bsize)