PCI: exynos: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Fri, 9 May 2014 05:31:25 +0000 (14:31 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 27 May 2014 22:58:00 +0000 (16:58 -0600)
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: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-exynos.c

index 3de6bfbbe8e95b4805b216662a013f03ee8a7367..81aa700a8ada7114bb5be41a3c612d8963548180 100644 (file)
@@ -568,10 +568,8 @@ static int __init exynos_pcie_probe(struct platform_device *pdev)
 
        exynos_pcie = devm_kzalloc(&pdev->dev, sizeof(*exynos_pcie),
                                GFP_KERNEL);
-       if (!exynos_pcie) {
-               dev_err(&pdev->dev, "no memory for exynos pcie\n");
+       if (!exynos_pcie)
                return -ENOMEM;
-       }
 
        pp = &exynos_pcie->pp;