Commit 83961aa
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>1 parent 0e8bb66 commit 83961aa
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1122 | 1122 | | |
1123 | 1123 | | |
1124 | 1124 | | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
| 1125 | + | |
1130 | 1126 | | |
1131 | 1127 | | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1132 | 1131 | | |
1133 | 1132 | | |
1134 | 1133 | | |
| |||
0 commit comments