Commit 9f94d047 authored by Ulf Hansson's avatar Ulf Hansson
Browse files

mmc: core: Drop redundant out-parameter to mmc_send_hpi_cmd()

parent 0d84c3e6
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;