]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: exynos: Remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Fri, 9 May 2014 05:31:25 +0000 (14:31 +0900)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:44 +0000 (21:18 -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>
(cherry picked from commit 755ba5e406e5ddd876e85a881dc50c7f54a8fd6b)

drivers/pci/host/pci-exynos.c

index 32c6d567e12a06b6cf74050a24c5adb359a52a7b..2ccc44257645e91adb21a10dd7dc212698863cc5 100644 (file)
@@ -567,10 +567,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;