mmc: core: Drop redundant check in mmc_send_hpi_cmd()
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Dec 2018 16:52:39 +0000 (17:52 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 08:01:15 +0000 (09:01 +0100)
commit1217e61544922ab649fe4df94e2f272c01c159ea
treec1e5e103fd6f639eb18a63b79874684688927004
parent01e421feec0817bb3141eaae4c517410d193d440
mmc: core: Drop redundant check in mmc_send_hpi_cmd()

There is no point checking if HPI is supported in mmc_send_hpi_cmd() as
mmc_interrupt_hpi(), which is the only caller, already checks if HPI has
been enabled. Therefore, let's drop the check and the corresponding error
path.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc_ops.c