summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/jz4740_nand.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-12-26 04:09:47 +0100
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 20:22:30 +0100
commit51b37b8a72eff5982948eb4d840a40d9b9f55bed (patch)
tree7b69b1dd846e10ad718bc23a11332b6506603134 /drivers/mtd/nand/jz4740_nand.c
parentmtd: fsl_ifc_nand: Remove unnecessary OOM messages (diff)
downloadlinux-51b37b8a72eff5982948eb4d840a40d9b9f55bed.tar.xz
linux-51b37b8a72eff5982948eb4d840a40d9b9f55bed.zip
mtd: jz4740_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/nand/jz4740_nand.c')
-rw-r--r--drivers/mtd/nand/jz4740_nand.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c
index a264b888c66c..a2c804de156b 100644
--- a/drivers/mtd/nand/jz4740_nand.c
+++ b/drivers/mtd/nand/jz4740_nand.c
@@ -416,10 +416,8 @@ static int jz_nand_probe(struct platform_device *pdev)
uint8_t nand_maf_id = 0, nand_dev_id = 0;
nand = kzalloc(sizeof(*nand), GFP_KERNEL);
- if (!nand) {
- dev_err(&pdev->dev, "Failed to allocate device structure.\n");
+ if (!nand)
return -ENOMEM;
- }
ret = jz_nand_ioremap_resource(pdev, "mmio", &nand->mem, &nand->base);
if (ret)