diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-10-21 11:16:14 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 06:40:41 -0500 |
commit | a1fc444e83de05ebbb6269029c9888b8f8b11490 (patch) | |
tree | 3e4131b725698216efdd56eac5dad33d0275520a | |
parent | 9e304d67ad4768585e4c7002341aac81272799ec (diff) |
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>
-rw-r--r-- | drivers/mmc/core/mmc.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) | |||
198 | * raw block in mmc_card. | 198 | * raw block in mmc_card. |
199 | */ | 199 | */ |
200 | ext_csd = kmalloc(512, GFP_KERNEL); | 200 | ext_csd = kmalloc(512, GFP_KERNEL); |
201 | if (!ext_csd) { | 201 | if (!ext_csd) |
202 | pr_err("%s: could not allocate a buffer to " | ||
203 | "receive the ext_csd.\n", mmc_hostname(card->host)); | ||
204 | return -ENOMEM; | 202 | return -ENOMEM; |
205 | } | ||
206 | 203 | ||
207 | err = mmc_send_ext_csd(card, ext_csd); | 204 | err = mmc_send_ext_csd(card, ext_csd); |
208 | if (err) { | 205 | if (err) { |