diff options
author | Michal Simek <michal.simek@xilinx.com> | 2020-09-23 10:36:47 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-10-27 08:01:36 +0100 |
commit | e1303b2bc14fb633dee9716af8a93657e4565eb7 (patch) | |
tree | a90d97185e675044b2fdb92be72e4e90ec960e23 /drivers/spi | |
parent | b9ac6c0820e6b5d953b847bfa0a217273a1ec7f2 (diff) | |
download | u-boot-e1303b2bc14fb633dee9716af8a93657e4565eb7.zip u-boot-e1303b2bc14fb633dee9716af8a93657e4565eb7.tar.gz u-boot-e1303b2bc14fb633dee9716af8a93657e4565eb7.tar.bz2 |
spi: xilinx_spi: Remove unused variable
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/xilinx_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 348630f..c0cfe94 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", |