Commit 00b41b58 authored by Ulf Hansson's avatar Ulf Hansson

mmc: core: Remove mmc_free_ext_csd()

Let callers of mmc_free_ext_csd() do kfree() directly instead.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 6130e7a9
...@@ -640,12 +640,6 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) ...@@ -640,12 +640,6 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
return err; return err;
} }
static inline void mmc_free_ext_csd(u8 *ext_csd)
{
kfree(ext_csd);
}
static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width)
{ {
u8 *bw_ext_csd; u8 *bw_ext_csd;
...@@ -719,7 +713,7 @@ static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) ...@@ -719,7 +713,7 @@ static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width)
err = -EINVAL; err = -EINVAL;
out: out:
mmc_free_ext_csd(bw_ext_csd); kfree(bw_ext_csd);
return err; return err;
} }
...@@ -1570,14 +1564,14 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, ...@@ -1570,14 +1564,14 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
if (!oldcard) if (!oldcard)
host->card = card; host->card = card;
mmc_free_ext_csd(ext_csd); kfree(ext_csd);
return 0; return 0;
free_card: free_card:
if (!oldcard) if (!oldcard)
mmc_remove_card(card); mmc_remove_card(card);
err: err:
mmc_free_ext_csd(ext_csd); kfree(ext_csd);
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment