]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: bcm2835: Drop DMA channel error pointer check
authorLukas Wunner <lukas@wunner.de>
Sun, 3 Feb 2019 08:27:00 +0000 (09:27 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Feb 2019 07:40:58 +0000 (08:40 +0100)
commit869e73f156f0264f9246df865e6bffcde8f35807
treef56ecc6dc5d3da1c1b50e8538f48cdb07626172e
parent053161ee31378839d39b9155670225aa0f0de292
mmc: bcm2835: Drop DMA channel error pointer check

bcm2835_add_host() invokes IS_ERR_OR_NULL() on a DMA channel pointer,
however dma_request_slave_channel() (which was used to populate the
pointer) never returns an error pointer.  So a NULL pointer check is
sufficient.

Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Frank Pavlic <f.pavlic@kunbus.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c