mmc: atmel-mci: Simplify if(chan) and if(!chan)
authorWan Jiabing <wanjiabing@vivo.com>
Wed, 27 Apr 2022 12:03:09 +0000 (20:03 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 4 May 2022 09:56:02 +0000 (11:56 +0200)
commit83961aacb2219311e4af5dda34bcc15435becd50
tree5e20456162374e1a5a7441021841a6662039e03a
parent0e8bb6666e3dcf18e4920a325028647da71eb500
mmc: atmel-mci: Simplify if(chan) and if(!chan)

Use if(!host->dma.chan) instead of if(chan) and if(!chan) to make
code better.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20220427120310.838843-1-wanjiabing@vivo.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c