Skip to content

Commit

Permalink
spi: orion: Remove unused pointer in orion_spi_write_read()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Engelmayer authored and Mark Brown committed Feb 6, 2014
1 parent 38dbfb5 commit 1647138
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-orion.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1647138

Please sign in to comment.