OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a21552
)
mtd: devices: elm: Remove unnecessary OOM messages
author
Jingoo Han
<jg1.han@samsung.com>
Thu, 6 Feb 2014 06:08:53 +0000
(15:08 +0900)
committer
Brian Norris
<computersforpeace@gmail.com>
Tue, 11 Mar 2014 05:42:24 +0000
(22:42 -0700)
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Pekon Gupta <pekon@ti.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/elm.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/elm.c
b/drivers/mtd/devices/elm.c
index
e2c073c
..
f160d2c
100644
(file)
--- a/
drivers/mtd/devices/elm.c
+++ b/
drivers/mtd/devices/elm.c
@@
-354,10
+354,8
@@
static int elm_probe(struct platform_device *pdev)
struct elm_info *info;
info = devm_kzalloc(&pdev->dev, sizeof(*info), GFP_KERNEL);
- if (!info) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!info)
return -ENOMEM;
- }
info->dev = &pdev->dev;