summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-11-12 12:22:56 +0900
committerBjorn Helgaas <bhelgaas@google.com>2014-11-13 10:44:02 -0700
commit6670070742991c69e02dde38c611a6c31ce8f30b (patch)
tree7c8b1b0b3cbd60b224cf94305c037e67aa85a142 /drivers/pci
parent5ba8368b7a78514d823cd7caaba7f6c2fdef8f97 (diff)
downloadop-kernel-dev-6670070742991c69e02dde38c611a6c31ce8f30b.zip
op-kernel-dev-6670070742991c69e02dde38c611a6c31ce8f30b.tar.gz
PCI: keystone: Remove unnecessary OOM message
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pci-keystone.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/host/pci-keystone.c b/drivers/pci/host/pci-keystone.c
index 1b893bc..62b9454 100644
--- a/drivers/pci/host/pci-keystone.c
+++ b/drivers/pci/host/pci-keystone.c
@@ -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 */
OpenPOWER on IntegriCloud