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

Rely on the prints handled internally by kmalloc().

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Ulf Hansson 2014-10-21 17:16:14 +02:00
parent 9e304d67ad
commit a1fc444e83
1 changed files with 1 additions and 4 deletions

View File

@ -198,11 +198,8 @@ static int mmc_get_ext_csd(struct mmc_card *card, u8 **new_ext_csd)
* raw block in mmc_card.
*/
ext_csd = kmalloc(512, GFP_KERNEL);
if (!ext_csd) {
pr_err("%s: could not allocate a buffer to "
"receive the ext_csd.\n", mmc_hostname(card->host));
if (!ext_csd)
return -ENOMEM;
}
err = mmc_send_ext_csd(card, ext_csd);
if (err) {