[U-Boot] fpga: zynqmp: Fix second local variable declaration
diff mbox series

Message ID 80536dbbef4de245af83968bce860e400a259527.1568191494.git.michal.simek@xilinx.com
State New
Delegated to: Michal Simek
Headers show
Series
  • [U-Boot] fpga: zynqmp: Fix second local variable declaration
Related show

Commit Message

Michal Simek Sept. 11, 2019, 8:44 a.m. UTC
No reason to define new_buf again.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 drivers/fpga/zynqmppl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c
index 22bfdd8dce61..f6d9d50ef15f 100644
--- a/drivers/fpga/zynqmppl.c
+++ b/drivers/fpga/zynqmppl.c
@@ -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);