summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-01-03 11:17:29 +0900
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 10:07:33 -0800
commita01eb2043b84bd6d595df58b7eba4f8841050b5e (patch)
tree88cc4847c0bba831ad6baafa91dc7469a84f1845 /drivers/mtd
parentffdac7cd31d04f81a09f517f37c371c5f978efec (diff)
downloadlinux-a01eb2043b84bd6d595df58b7eba4f8841050b5e.tar.gz
linux-a01eb2043b84bd6d595df58b7eba4f8841050b5e.tar.xz
mtd: plat_nand: 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/plat_nand.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/plat_nand.c b/drivers/mtd/nand/plat_nand.c
index d00e3a7c6bd8..4ebed7273bc0 100644
--- a/drivers/mtd/nand/plat_nand.c
+++ b/drivers/mtd/nand/plat_nand.c
@@ -55,10 +55,8 @@ static int plat_nand_probe(struct platform_device *pdev)
/* Allocate memory for the device structure (and zero it) */
data = devm_kzalloc(&pdev->dev, sizeof(struct plat_nand_data),
GFP_KERNEL);
- if (!data) {
- dev_err(&pdev->dev, "failed to allocate device structure.\n");
+ if (!data)
return -ENOMEM;
- }
data->io_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(data->io_base))