dmaengine: ste_dma40: Remove home-brew MAX() macro
authorLee Jones <lee.jones@linaro.org>
Fri, 3 May 2013 14:31:58 +0000 (15:31 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 May 2013 19:12:02 +0000 (21:12 +0200)
commit84b3da1498943840005d7d5652caf4fe6fd333e6
tree5d02fa1a946f724fab05b302b270b6bb6f02c3a5
parentdf7c9bbc246e6f173a2e718976aad7c163ed81ba
dmaengine: ste_dma40: Remove home-brew MAX() macro

The current implementation of the DMA40's local MAX() macro evaluates
its arguments more times than is necessary and it not type checked.
This patch strips replaces it with a new, more efficient constant.

Cc: Dan Williams <djbw@fb.com>
Cc: Per Forlin <per.forlin@stericsson.com>
Cc: Rabin Vincent <rabin@rab.in>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Reported-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/dma/ste_dma40.c