diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-04-25 15:51:58 +0400 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-05-13 11:14:04 +0400 |
commit | 42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5 (patch) | |
tree | e96f986ca6e844ff02def29837212f5e63c518ce | |
parent | 14cfc4f3735d9704cb6a630ef302be596d380684 (diff) | |
download | u-boot-42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5.tar.xz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c index dcd34951ad..0a134e524c 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) |