From: Michal Simek Date: Fri, 25 Apr 2014 11:51:58 +0000 (+0200) Subject: fpga: zynq: Remove sparse warnings X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=42a74a08eb4ef976f3b29a0b2bdefe0e509af8f5;p=u-boot.git 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 --- 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)