From: Ulf Hansson Date: Tue, 21 Oct 2014 15:16:14 +0000 (+0200) Subject: mmc: core: Remove unnecessary 'out of memory' message X-Git-Tag: v3.19-rc1~183^2~86 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1fc444e83de05ebbb6269029c9888b8f8b11490;p=karo-tx-linux.git mmc: core: Remove unnecessary 'out of memory' message Rely on the prints handled internally by kmalloc(). Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index cc9f4599f3e1..5226ef8c0c2d 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -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) {