fpga: zynq: Remove sparse warnings
[oweals/u-boot.git] / 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)