linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: orion: Remove unused pointer in orion_spi_write_read()
@ 2014-02-05 21:23 Christian Engelmayer
  2014-02-05 21:31 ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Engelmayer @ 2014-02-05 21:23 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

Remove unused devdata pointer 'orion_spi' in function orion_spi_write_read().

Detected by Coverity: CID 1077860.

Signed-off-by: Christian Engelmayer <cengelma-RbZlAiThDcE@public.gmane.org>
---
 drivers/spi/spi-orion.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c
index 7f2121f..75871d4 100644
--- a/drivers/spi/spi-orion.c
+++ b/drivers/spi/spi-orion.c
@@ -260,11 +260,9 @@ orion_spi_write_read_16bit(struct spi_device *spi,
 static unsigned int
 orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer)
 {
-	struct orion_spi *orion_spi;
 	unsigned int count;
 	int word_len;
 
-	orion_spi = spi_master_get_devdata(spi->master);
 	word_len = spi->bits_per_word;
 	count = xfer->len;
 
-- 
1.8.3.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-05 23:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 21:23 [PATCH] spi: orion: Remove unused pointer in orion_spi_write_read() Christian Engelmayer
2014-02-05 21:31 ` Mark Brown
     [not found]   ` <20140205213116.GA12659-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-02-05 21:54     ` Christian Engelmayer
2014-02-05 22:12       ` Mark Brown
     [not found]         ` <20140205221226.GJ32298-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-02-05 23:30           ` Christian Engelmayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).