From: Jingoo Han Date: Fri, 9 May 2014 05:31:25 +0000 (+0900) Subject: PCI: exynos: Remove unnecessary OOM messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=755ba5e406e5ddd876e85a881dc50c7f54a8fd6b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git PCI: exynos: 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 Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/host/pci-exynos.c b/drivers/pci/host/pci-exynos.c index 3de6bfbbe8e9..81aa700a8ada 100644 --- a/drivers/pci/host/pci-exynos.c +++ b/drivers/pci/host/pci-exynos.c @@ -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;