mmc: jz4740: Use PTR_ERR_OR_ZERO in jz4740_mmc_request_gpios()
authorYueHaibing <yuehaibing@huawei.com>
Sat, 1 Dec 2018 01:45:46 +0000 (01:45 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commitfeb357458baa0bd0f644a5bd790841555b959b48
treecc83f5ece5551984f7e5ee3d792e50e090193714
parent67b4ff9fb796d8e572a9bb82d851639a81812aa9
mmc: jz4740: Use PTR_ERR_OR_ZERO in jz4740_mmc_request_gpios()

Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Joey Pabalinas <joeypabalinas@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/jz4740_mmc.c