summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-spear13xx.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-11-12 04:29:02 +0100
committerBjorn Helgaas <bhelgaas@google.com>2014-11-13 18:55:39 +0100
commit20f9ece101d8793331f61a234cef3ee000891085 (patch)
tree355509168dd2511d9469786224d5f385ed2b6a78 /drivers/pci/host/pcie-spear13xx.c
parentPCI: spear: Add __init annotation to spear13xx_add_pcie_port() (diff)
downloadlinux-20f9ece101d8793331f61a234cef3ee000891085.tar.xz
linux-20f9ece101d8793331f61a234cef3ee000891085.zip
PCI: spear: 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> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/pci/host/pcie-spear13xx.c')
-rw-r--r--drivers/pci/host/pcie-spear13xx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 60f43cd96854..2ca10cc887ee 100644
--- a/drivers/pci/host/pcie-spear13xx.c
+++ b/drivers/pci/host/pcie-spear13xx.c
@@ -309,10 +309,8 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev)
int ret;
spear13xx_pcie = devm_kzalloc(dev, sizeof(*spear13xx_pcie), GFP_KERNEL);
- if (!spear13xx_pcie) {
- dev_err(dev, "no memory for SPEAr13xx pcie\n");
+ if (!spear13xx_pcie)
return -ENOMEM;
- }
spear13xx_pcie->phy = devm_phy_get(dev, "pcie-phy");
if (IS_ERR(spear13xx_pcie->phy)) {