Skip to content

Commit

Permalink
mmc: core: Remove unnecessary 'out of memory' message
Browse files Browse the repository at this point in the history
Rely on the prints handled internally by kmalloc().

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Ulf Hansson committed Nov 10, 2014
1 parent 9e304d6 commit a1fc444
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/mmc/core/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a1fc444

Please sign in to comment.