From: Ulf Hansson Date: Mon, 10 Dec 2018 16:52:39 +0000 (+0100) Subject: mmc: core: Drop redundant check in mmc_send_hpi_cmd() X-Git-Tag: v5.4-rc1~1936^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1217e61544922ab649fe4df94e2f272c01c159ea;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 873b2aa..ffc74d4 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c @@ -802,12 +802,6 @@ static int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status) unsigned int opcode; int err; - if (!card->ext_csd.hpi) { - pr_warn("%s: Card didn't support HPI command\n", - mmc_hostname(card->host)); - return -EINVAL; - } - opcode = card->ext_csd.hpi_cmd; if (opcode == MMC_STOP_TRANSMISSION) cmd.flags = MMC_RSP_R1B | MMC_CMD_AC;