Commit a1fc444e authored by Ulf Hansson's avatar Ulf Hansson

mmc: core: Remove unnecessary 'out of memory' message

Rely on the prints handled internally by kmalloc().
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 9e304d67
...@@ -198,11 +198,8 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd) ...@@ -198,11 +198,8 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
* raw block in mmc_card. * raw block in mmc_card.
*/ */
ext_csd = kmalloc(512, GFP_KERNEL); ext_csd = kmalloc(512, GFP_KERNEL);
if (!ext_csd) { if (!ext_csd)
pr_err("%s: could not allocate a buffer to "
"receive the ext_csd.\n", mmc_hostname(card->host));
return -ENOMEM; return -ENOMEM;
}
err = mmc_send_ext_csd(card, ext_csd); err = mmc_send_ext_csd(card, ext_csd);
if (err) { if (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