summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-04-25 13:51:58 +0200
committerMichal Simek <michal.simek@xilinx.com>2014-05-13 09:14:04 +0200
commit42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5 (patch)
treee96f986ca6e844ff02def29837212f5e63c518ce
parent14cfc4f3735d9704cb6a630ef302be596d380684 (diff)
downloadu-boot-imx-42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5.zip
u-boot-imx-42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5.tar.gz
u-boot-imx-42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5.tar.bz2
fpga: zynq: Remove sparse warnings
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>
-rw-r--r--drivers/fpga/zynqpl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c
index dcd3495..0a134e5 100644
--- a/drivers/fpga/zynqpl.c
+++ b/drivers/fpga/zynqpl.c
@@ -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)