mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Viresh Kumar <[email protected]>
This commit is contained in:
1 parent
992e7bd2be
commit
20f9ece101
1 file changed
+1
-3
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user