From: Stephan Linz Date: Tue, 7 Aug 2012 21:29:39 +0000 (+0200) Subject: spi: xilinx: Remove unused variable X-Git-Tag: v2012.10-rc1~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=03afad2fc90dcff42402b0183f4b4f5119f99a18;p=oweals%2Fu-boot.git spi: xilinx: Remove unused variable Warning is: xilinx_spi.c: In function 'spi_setup_slave': xilinx_spi.c:81: warning: unused variable 'regs' Signed-off-by: Stephan Linz CC: Michal Simek --- diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index e563c19051..52a4134f18 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",