Patchwork [U-Boot] spi: xilinx: Remove unused variable

login
register
mail settings
Submitter Stephan Linz
Date Aug. 7, 2012, 9:29 p.m.
Message ID <1344374979-4922-1-git-send-email-linz@li-pro.net>
Download mbox | patch
Permalink /patch/175806/
State Accepted
Commit 03afad2fc90dcff42402b0183f4b4f5119f99a18
Delegated to: Michal Simek
Headers show

Comments

Stephan Linz - Aug. 7, 2012, 9:29 p.m.
Warning is:

xilinx_spi.c: In function 'spi_setup_slave':
xilinx_spi.c:81: warning: unused variable 'regs'

Signed-off-by: Stephan Linz <linz@li-pro.net>
CC: Michal Simek <monstr@monstr.eu>
---
 drivers/spi/xilinx_spi.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c
index e563c19..52a4134 100644
--- a/drivers/spi/xilinx_spi.c
+++ b/drivers/spi/xilinx_spi.c
@@ -78,7 +78,6 @@  struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
 				  unsigned int max_hz, unsigned int mode)
 {
 	struct xilinx_spi_slave *xilspi;
-	struct xilinx_spi_reg *regs;
 
 	if (!spi_cs_is_valid(bus, cs)) {
 		printf("XILSPI error: %s: unsupported bus %d / cs %d\n",