diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2014-02-05 16:23:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-06 09:35:49 -0500 |
commit | 1647138df66c695eb16f4a6bce7f088f817ab26d (patch) | |
tree | 79d8be3e585170c45a1e6b4f628a2f04c398b846 /drivers/spi/spi-orion.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
spi: orion: Remove unused pointer in orion_spi_write_read()
Remove unused devdata pointer 'orion_spi' in function orion_spi_write_read().
Detected by Coverity: CID 1077860.
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-orion.c')
-rw-r--r-- | drivers/spi/spi-orion.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-orion.c b/drivers/spi/spi-orion.c index 7f2121fe2622..75871d444ff4 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, | |||
260 | static unsigned int | 260 | static unsigned int |
261 | orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) | 261 | orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) |
262 | { | 262 | { |
263 | struct orion_spi *orion_spi; | ||
264 | unsigned int count; | 263 | unsigned int count; |
265 | int word_len; | 264 | int word_len; |
266 | 265 | ||
267 | orion_spi = spi_master_get_devdata(spi->master); | ||
268 | word_len = spi->bits_per_word; | 266 | word_len = spi->bits_per_word; |
269 | count = xfer->len; | 267 | count = xfer->len; |
270 | 268 | ||