[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1357524615.4940.19.camel@joe-AO722>
Date: Sun, 06 Jan 2013 18:10:15 -0800
From: Joe Perches <joe@...ches.com>
To: Wenyou Yang <wenyou.yang@...el.com>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
nicolas.ferre@...el.com, plagnioj@...osoft.com,
richard.genoud@...il.com, JM.Lin@...el.com,
grant.likely@...retlab.ca, spi-devel-general@...ts.sourceforge.net
Subject: Re: [v3 PATCH 06/12] spi/atmel_spi: add dmaengine support
On Mon, 2013-01-07 at 09:50 +0800, Wenyou Yang wrote:
> From: Nicolas Ferre <nicolas.ferre@...el.com>
[]
> diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
[]
> +static inline bool atmel_spi_use_dma(struct atmel_spi *as,
> + struct spi_transfer *xfer)
> +{
> + if ((as->use_dma) && (xfer->len >= DMA_MIN_BYTES))
> + return true;
> + else
> + return false;
> +}
Same unnecessary form.
return as->use_dma && xfer->len >= DMA_MIN_BYTES;
> +static inline bool atmel_spi_use_pdc(struct atmel_spi *as)
> +{
> + if (as->use_pdc)
> + return true;
> + else
> + return false;
> +}
Does this function really need to exist at all?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists