fpga: zynqmp: Fix second local variable declaration

No reason to define new_buf again.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
Michal Simek 2019-08-02 12:43:29 +02:00
parent d882f0847c
commit 23decf013b

View file

@ -153,7 +153,7 @@ static ulong zynqmp_align_dma_buffer(u32 *buf, u32 len, u32 swap)
} else if ((swap != SWAP_DONE) && } else if ((swap != SWAP_DONE) &&
(zynqmp_pmufw_version() <= PMUFW_V1_0)) { (zynqmp_pmufw_version() <= PMUFW_V1_0)) {
/* For bitstream which are aligned */ /* For bitstream which are aligned */
u32 *new_buf = (u32 *)buf; new_buf = buf;
printf("%s: Bitstream is not swapped(%d) - swap it\n", __func__, printf("%s: Bitstream is not swapped(%d) - swap it\n", __func__,
swap); swap);