summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2020-02-04 09:54:46 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2020-03-24 14:35:40 +0100
commit9f94d04752ad6bf6a704637c61590fe55c4c0d82 (patch)
tree5b955f11b7384d3ec0897a0c4e3d2062e2f048ff /drivers
parent0d84c3e6a5b2cd4ddd68b7ef7cf7c2dafd5146ef (diff)
mmc: core: Drop redundant out-parameter to mmc_send_hpi_cmd()
The 'u32 *status' is unused by the caller, so let's drop it. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Tested-by: Baolin Wang <baolin.wang7@gmail.com> Tested-by: Ludovic Barre <ludovic.barre@st.com> Reviewed-by: Ludovic Barre <ludovic.barre@st.com> Link: https://lore.kernel.org/r/20200204085449.32585-10-ulf.hansson@linaro.org
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/core/mmc_ops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c
index 3f510348b916..7d150e68be08 100644
--- a/drivers/mmc/core/mmc_ops.c
+++ b/drivers/mmc/core/mmc_ops.c
@@ -829,7 +829,7 @@ int mmc_bus_test(struct mmc_card *card, u8 bus_width)
return mmc_send_bus_test(card, card->host, MMC_BUS_TEST_R, width);
}
-static int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status)
+static int mmc_send_hpi_cmd(struct mmc_card *card)
{
struct mmc_command cmd = {};
unsigned int opcode;
@@ -851,8 +851,6 @@ static int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status)
err, cmd.resp[0]);
return err;
}
- if (status)
- *status = cmd.resp[0];
return 0;
}
@@ -901,7 +899,7 @@ int mmc_interrupt_hpi(struct mmc_card *card)
goto out;
}
- err = mmc_send_hpi_cmd(card, &status);
+ err = mmc_send_hpi_cmd(card);
if (err)
goto out;