fpga: zynqmp: Fix second local variable declaration
authorMichal Simek <michal.simek@xilinx.com>
Fri, 2 Aug 2019 10:43:29 +0000 (12:43 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 8 Oct 2019 07:41:27 +0000 (09:41 +0200)
No reason to define new_buf again.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/fpga/zynqmppl.c

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