]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: fsmc_nand: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Thu, 26 Dec 2013 03:16:38 +0000 (12:16 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 3 Jan 2014 19:22:31 +0000 (11:22 -0800)
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>
drivers/mtd/nand/fsmc_nand.c

index 8b2752263db9a5549742bb36c3dcee48999b8b62..a5915f1172e672254976e21bb7f5e2fe75f4d798 100644 (file)
@@ -889,10 +889,8 @@ static int fsmc_nand_probe_config_dt(struct platform_device *pdev,
 
        pdata->nand_timings = devm_kzalloc(&pdev->dev,
                                sizeof(*pdata->nand_timings), GFP_KERNEL);
-       if (!pdata->nand_timings) {
-               dev_err(&pdev->dev, "no memory for nand_timing\n");
+       if (!pdata->nand_timings)
                return -ENOMEM;
-       }
        of_property_read_u8_array(np, "timings", (u8 *)pdata->nand_timings,
                                                sizeof(*pdata->nand_timings));
 
@@ -950,10 +948,8 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
 
        /* Allocate memory for the device structure (and zero it) */
        host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL);
-       if (!host) {
-               dev_err(&pdev->dev, "failed to allocate device structure\n");
+       if (!host)
                return -ENOMEM;
-       }
 
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "nand_data");
        host->data_va = devm_ioremap_resource(&pdev->dev, res);