projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e304d6
)
mmc: core: Remove unnecessary 'out of memory' message
author
Ulf Hansson
<ulf.hansson@linaro.org>
Tue, 21 Oct 2014 15:16:14 +0000
(17:16 +0200)
committer
Ulf Hansson
<ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:41 +0000
(12:40 +0100)
Rely on the prints handled internally by kmalloc().
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/mmc.c
b/drivers/mmc/core/mmc.c
index cc9f4599f3e1988bdf20a22fe5f85f7229862945..5226ef8c0c2dc704fbdfb5586d94e4a4dc58ac6e 100644
(file)
--- 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) {