[U-Boot] [PATCH] fpga: zynqmp: Fix second local variable declaration

Michal Simek monstr at monstr.eu
Tue Oct 8 07:43:08 UTC 2019


st 11. 9. 2019 v 10:44 odesílatel Michal Simek <michal.simek at xilinx.com> napsal:
>
> No reason to define new_buf again.
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
>
>  drivers/fpga/zynqmppl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
> --
> 2.17.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


More information about the U-Boot mailing list