|
@@ -294,12 +294,8 @@ static int mmc_read_switch(struct mmc_card *card)
|
|
|
err = -EIO;
|
|
|
|
|
|
status = kmalloc(64, GFP_KERNEL);
|
|
|
- if (!status) {
|
|
|
- pr_err("%s: could not allocate a buffer for "
|
|
|
- "switch capabilities.\n",
|
|
|
- mmc_hostname(card->host));
|
|
|
+ if (!status)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
|
|
|
/*
|
|
|
* Find out the card's support bits with a mode 0 operation.
|
|
@@ -359,11 +355,8 @@ int mmc_sd_switch_hs(struct mmc_card *card)
|
|
|
return 0;
|
|
|
|
|
|
status = kmalloc(64, GFP_KERNEL);
|
|
|
- if (!status) {
|
|
|
- pr_err("%s: could not allocate a buffer for "
|
|
|
- "switch capabilities.\n", mmc_hostname(card->host));
|
|
|
+ if (!status)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
|
|
|
err = mmc_sd_switch(card, 1, 0, 1, status);
|
|
|
if (err)
|
|
@@ -596,11 +589,8 @@ static int mmc_sd_init_uhs_card(struct mmc_card *card)
|
|
|
return 0;
|
|
|
|
|
|
status = kmalloc(64, GFP_KERNEL);
|
|
|
- if (!status) {
|
|
|
- pr_err("%s: could not allocate a buffer for "
|
|
|
- "switch capabilities.\n", mmc_hostname(card->host));
|
|
|
+ if (!status)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
|
|
|
/* Set 4-bit bus width */
|
|
|
if ((card->host->caps & MMC_CAP_4_BIT_DATA) &&
|