[PATCH 05/32] dmaengine: ste_dma40: Supply macros to resolve 'src' and 'dst' directions
Arnd Bergmann
arnd at arndb.de
Thu Apr 18 06:50:50 EDT 2013
On Thursday 18 April 2013, Lee Jones wrote:
> +#define D40_IS_SRC(dir) ((dir == STEDMA40_PERIPH_TO_MEM) ? true : false)
> +#define D40_IS_DST(dir) (((dir == STEDMA40_MEM_TO_PERIPH) || \
> + (dir == STEDMA40_MEM_TO_MEM)) ? true : false)
> +
The redundant "? true : false" part is redundant. ;-)
Otherwise the patch looks good.
Acked-by: Arnd Bergmann <arnd at arndb.de>
Arnd
More information about the linux-arm-kernel
mailing list