diff mbox

[PATCHv3,1/6] SPI omap2_mcspi.c: Check params before dereference or use

Message ID 1274710827.2888.9.camel@quad (mailing list archive)
State Accepted
Headers show

Commit Message

Scott Ellis May 24, 2010, 2:20 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c
index e0de0d0..0b35468 100644
--- a/drivers/spi/omap2_mcspi.c
+++ b/drivers/spi/omap2_mcspi.c
@@ -755,7 +755,6 @@  static void omap2_mcspi_cleanup(struct spi_device
*spi)
 	struct omap2_mcspi_cs	*cs;
 
 	mcspi = spi_master_get_devdata(spi->master);
-	mcspi_dma = &mcspi->dma_channels[spi->chip_select];
 
 	if (spi->controller_state) {