diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-12-26 12:17:42 +0900 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-07 10:06:57 -0800 |
commit | 24e9971d3d938f49ea03e0c76649a62894175b3f (patch) | |
tree | 2b045b246f6d5a8d97c86064c474dc14b7e4d921 /drivers/mtd | |
parent | d9a21ae8e5f3fe2d940f54e45386b35b98cbcc35 (diff) |
mtd: nand-gpio: 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>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/gpio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c index e826f898241..8dfdbb63e09 100644 --- a/drivers/mtd/nand/gpio.c +++ b/drivers/mtd/nand/gpio.c @@ -211,10 +211,8 @@ static int gpio_nand_probe(struct platform_device *pdev) return -EINVAL; gpiomtd = devm_kzalloc(&pdev->dev, sizeof(*gpiomtd), GFP_KERNEL); - if (!gpiomtd) { - dev_err(&pdev->dev, "failed to create NAND MTD\n"); + if (!gpiomtd) return -ENOMEM; - } chip = &gpiomtd->nand_chip; |