diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-02-06 15:08:53 +0900 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-03-10 22:42:24 -0700 |
commit | 834fa8a56593044f98a0da68bc21d1a31d05124f (patch) | |
tree | 106bfee43cdf76185a07431d24b976df9193843c /drivers/mtd/devices/elm.c | |
parent | 0a21552a6e8ab9d3bacd490f5b94a178ce4d661d (diff) |
mtd: devices: elm: Remove unnecessary OOM messages
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>
Diffstat (limited to 'drivers/mtd/devices/elm.c')
-rw-r--r-- | drivers/mtd/devices/elm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/devices/elm.c b/drivers/mtd/devices/elm.c index e2c073c5a7cc..f160d2c6cd59 100644 --- 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; |