]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: keystone: Remove unnecessary OOM message
authorJingoo Han <jg1.han@samsung.com>
Wed, 12 Nov 2014 03:22:56 +0000 (12:22 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Nov 2014 17:44:02 +0000 (10:44 -0700)
The site-specific OOM messages are unnecessary because they duplicate the
MM subsystem generic OOM message.  This patch fixes the following
checkpatch warning:

  WARNING: Possible unnecessary 'out of memory' message

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pci-keystone.c

index 1b893bc8b84222591cd81cdbfd6683326a11cd7d..62b9454c86fb7f60921f28945c35953f574aa7c7 100644 (file)
@@ -353,10 +353,9 @@ static int __init ks_pcie_probe(struct platform_device *pdev)
 
        ks_pcie = devm_kzalloc(&pdev->dev, sizeof(*ks_pcie),
                                GFP_KERNEL);
-       if (!ks_pcie) {
-               dev_err(dev, "no memory for keystone pcie\n");
+       if (!ks_pcie)
                return -ENOMEM;
-       }
+
        pp = &ks_pcie->pp;
 
        /* initialize SerDes Phy if present */