mmc: bcm2835: Refactor dma_map_sg handling
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 11 Nov 2018 20:23:58 +0000 (21:23 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commit6dc6f2619017109e45550accc120f823fdc31c3e
tree76d1dc5b735e35aed0c4f7fe5b48e5498618a029
parent37fefadee8bb665ae337a15aa635dabff9f66ade
mmc: bcm2835: Refactor dma_map_sg handling

There are two variables len within bcm2835_prepare_dma. So rename the
result of dma_map_sg to sg_len. While we are at this add a bail out to
simplify the following change.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c