Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx> --- drivers/firmware/zynqmp-fpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/zynqmp-fpga.c b/drivers/firmware/zynqmp-fpga.c index 887865883ad2..1728e2a9545f 100644 --- a/drivers/firmware/zynqmp-fpga.c +++ b/drivers/firmware/zynqmp-fpga.c @@ -136,7 +136,7 @@ static int is_bin_header_valid(const u32 *bin_header, size_t size, return 0; for (i = 0; i < ARRAY_SIZE(bin_format); i++) - if (bin_header != (byte_order == XILINX_BYTE_ORDER_BIT) ? + if (bin_header[i] != (byte_order == XILINX_BYTE_ORDER_BIT) ? bin_format[i] : __swab32(bin_format[i])) return 0; -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox