diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-04-25 13:51:58 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-05-13 09:14:04 +0200 |
commit | 42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5 (patch) | |
tree | e96f986ca6e844ff02def29837212f5e63c518ce /drivers/fpga | |
parent | 14cfc4f3735d9704cb6a630ef302be596d380684 (diff) | |
download | u-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>
Diffstat (limited to 'drivers/fpga')
-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 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) |