Commit 1647138d authored by Christian Engelmayer's avatar Christian Engelmayer Committed by Mark Brown

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: default avatarChristian Engelmayer <cengelma@gmx.at>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -260,11 +260,9 @@ orion_spi_write_read_16bit(struct spi_device *spi, ...@@ -260,11 +260,9 @@ orion_spi_write_read_16bit(struct spi_device *spi,
static unsigned int static unsigned int
orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer) orion_spi_write_read(struct spi_device *spi, struct spi_transfer *xfer)
{ {
struct orion_spi *orion_spi;
unsigned int count; unsigned int count;
int word_len; int word_len;
orion_spi = spi_master_get_devdata(spi->master);
word_len = spi->bits_per_word; word_len = spi->bits_per_word;
count = xfer->len; count = xfer->len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment