From 03afad2fc90dcff42402b0183f4b4f5119f99a18 Mon Sep 17 00:00:00 2001 From: Stephan Linz Date: Tue, 7 Aug 2012 23:29:39 +0200 Subject: [PATCH] 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 --- drivers/spi/xilinx_spi.c | 1 - 1 file changed, 1 deletion(-) 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", -- 2.30.2