Let callers of mmc_free_ext_csd() do kfree() directly instead.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
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)
{
u8 *bw_ext_csd;
err = -EINVAL;
out:
- mmc_free_ext_csd(bw_ext_csd);
+ kfree(bw_ext_csd);
return err;
}
if (!oldcard)
host->card = card;
- mmc_free_ext_csd(ext_csd);
+ kfree(ext_csd);
return 0;
free_card:
if (!oldcard)
mmc_remove_card(card);
err:
- mmc_free_ext_csd(ext_csd);
+ kfree(ext_csd);
return err;
}