All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: xilinx_spi: Remove unused variable
@ 2020-09-23  8:37 Michal Simek
  2020-10-27  7:12 ` Michal Simek
  0 siblings, 1 reply; 2+ messages in thread
From: Michal Simek @ 2020-09-23  8:37 UTC (permalink / raw)
  To: u-boot

Remove unused variable:
drivers/spi/xilinx_spi.c: In function 'xilinx_spi_xfer':
drivers/spi/xilinx_spi.c:254:18: warning: unused variable 'timeout' [-Wunused-variable]
  254 |  u32 reg, count, timeout;
      |                  ^~~~~~~

Fixes: 0c0de58f7b30 ("spi: xilinx_spi: Modify transfer logic xilinx_spi_xfer() function")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

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

diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
index 348630faf381..c0cfe94d4439 100644
--- a/drivers/spi/xilinx_spi.c
+++ b/drivers/spi/xilinx_spi.c
@@ -251,7 +251,7 @@ static int xilinx_spi_xfer(struct udevice *dev, unsigned int bitlen,
 	unsigned char *rxp = din;
 	u32 txbytes = bytes;
 	u32 rxbytes = bytes;
-	u32 reg, count, timeout;
+	u32 reg, count;
 	int ret;
 
 	debug("spi_xfer: bus:%i cs:%i bitlen:%i bytes:%i flags:%lx\n",
-- 
2.28.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] spi: xilinx_spi: Remove unused variable
  2020-09-23  8:37 [PATCH] spi: xilinx_spi: Remove unused variable Michal Simek
@ 2020-10-27  7:12 ` Michal Simek
  0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2020-10-27  7:12 UTC (permalink / raw)
  To: u-boot

st 23. 9. 2020 v 10:37 odes?latel Michal Simek <michal.simek@xilinx.com> napsal:
>
> Remove unused variable:
> drivers/spi/xilinx_spi.c: In function 'xilinx_spi_xfer':
> drivers/spi/xilinx_spi.c:254:18: warning: unused variable 'timeout' [-Wunused-variable]
>   254 |  u32 reg, count, timeout;
>       |                  ^~~~~~~
>
> Fixes: 0c0de58f7b30 ("spi: xilinx_spi: Modify transfer logic xilinx_spi_xfer() function")
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  drivers/spi/xilinx_spi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
> index 348630faf381..c0cfe94d4439 100644
> --- a/drivers/spi/xilinx_spi.c
> +++ b/drivers/spi/xilinx_spi.c
> @@ -251,7 +251,7 @@ static int xilinx_spi_xfer(struct udevice *dev, unsigned int bitlen,
>         unsigned char *rxp = din;
>         u32 txbytes = bytes;
>         u32 rxbytes = bytes;
> -       u32 reg, count, timeout;
> +       u32 reg, count;
>         int ret;
>
>         debug("spi_xfer: bus:%i cs:%i bitlen:%i bytes:%i flags:%lx\n",
> --
> 2.28.0
>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-27  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23  8:37 [PATCH] spi: xilinx_spi: Remove unused variable Michal Simek
2020-10-27  7:12 ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.