On Sat, Feb 08 2014, Christian Engelmayer <[email protected]> wrote:
> Remove unused devdata pointer 'spi100k' in function omap1_spi100k_txrx_pio().
>
> Detected by Coverity: CID 1077869.
>
> Signed-off-by: Christian Engelmayer <[email protected]>

Acked-by: Michal Nazarewicz <[email protected]>

> ---
> Applies against v3.14-rc1 as well as branch for-next in tree
> git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
> ---
>  drivers/spi/spi-omap-100k.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c
> index 0d32054..8eaf0cd 100644
> --- a/drivers/spi/spi-omap-100k.c
> +++ b/drivers/spi/spi-omap-100k.c
> @@ -204,12 +204,10 @@ static void omap1_spi100k_force_cs(struct omap1_spi100k 
> *spi100k, int enable)
>  static unsigned
>  omap1_spi100k_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
>  {
> -     struct omap1_spi100k    *spi100k;
>       struct omap1_spi100k_cs *cs = spi->controller_state;
>       unsigned int            count, c;
>       int                     word_len;
>  
> -     spi100k = spi_master_get_devdata(spi->master);
>       count = xfer->len;
>       c = count;
>       word_len = cs->word_len;
> -- 
> 1.8.3.2

-- 
Best regards,                                         _     _
.o. | Liege of Serenely Enlightened Majesty of      o' \,=./ `o
..o | Computer Science,  Michał “mina86” Nazarewicz    (o o)
ooo +--<[email protected]>--<xmpp:[email protected]>--ooO--(_)--Ooo--

Attachment: signature.asc
Description: PGP signature

Reply via email to