Skip to content
Snippets Groups Projects
Commit 42a74a08 authored by Michal Simek's avatar Michal Simek
Browse files

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: default avatarMichal Simek <michal.simek@xilinx.com>
parent 14cfc4f3
No related branches found
No related tags found
No related merge requests found
...@@ -147,9 +147,9 @@ static void *check_data(u8 *buf, size_t bsize, u32 *swap) ...@@ -147,9 +147,9 @@ static void *check_data(u8 *buf, size_t bsize, u32 *swap)
} }
/* Loop can be huge - support CTRL + C */ /* Loop can be huge - support CTRL + C */
if (ctrlc()) if (ctrlc())
return 0; return NULL;
} }
return 0; return NULL;
} }
static int zynq_load(xilinx_desc *desc, const void *buf, size_t bsize) static int zynq_load(xilinx_desc *desc, const void *buf, size_t bsize)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment