diff options
| author | 2025-08-20 16:52:00 +0800 | |
|---|---|---|
| committer | 2025-09-08 15:44:31 +0530 | |
| commit | 882569dca6646eb3294ec048d76f9bfea1f3348f (patch) | |
| tree | 1a0c48ff6a5122907306ebeeea881c7b05847065 | |
| parent | Linux 6.17-rc1 (diff) | |
| download | wireguard-linux-882569dca6646eb3294ec048d76f9bfea1f3348f.tar.xz wireguard-linux-882569dca6646eb3294ec048d76f9bfea1f3348f.zip | |
PCI: plda: Remove dev_err_probe() when the errno is -ENOMEM
The dev_err_probe() doesn't do anything when error is '-ENOMEM'.
Therefore, remove the useless call to dev_err_probe(), and just
return the value instead.
Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
[mani: reworded the subject]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
| -rw-r--r-- | drivers/pci/controller/plda/pcie-plda-host.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/controller/plda/pcie-plda-host.c b/drivers/pci/controller/plda/pcie-plda-host.c index 8e2db2e5b64b..3c2f68383010 100644 --- a/drivers/pci/controller/plda/pcie-plda-host.c +++ b/drivers/pci/controller/plda/pcie-plda-host.c @@ -599,8 +599,7 @@ int plda_pcie_host_init(struct plda_pcie_rp *port, struct pci_ops *ops, bridge = devm_pci_alloc_host_bridge(dev, 0); if (!bridge) - return dev_err_probe(dev, -ENOMEM, - "failed to alloc bridge\n"); + return -ENOMEM; if (port->host_ops && port->host_ops->host_init) { ret = port->host_ops->host_init(port); |
