All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] PCI: mediatek-gen3: Integrate new pwrctrl API
@ 2026-04-10 10:14 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2026-04-10 10:14 UTC (permalink / raw)
  To: Chen-Yu Tsai; +Cc: linux-pci, linux-mediatek

Hello Chen-Yu Tsai,

Commit 1a152e21940a ("PCI: mediatek-gen3: Integrate new pwrctrl API")
from Mar 24, 2026 (linux-next), leads to the following Smatch static
checker warning:

	drivers/pci/controller/pcie-mediatek-gen3.c:1226 mtk_pcie_probe()
	warn: ignoring unreachable code.

drivers/pci/controller/pcie-mediatek-gen3.c
    1202 static int mtk_pcie_probe(struct platform_device *pdev)
    1203 {
    1204         struct device *dev = &pdev->dev;
    1205         struct mtk_gen3_pcie *pcie;
    1206         struct pci_host_bridge *host;
    1207         int err;
    1208 
    1209         host = devm_pci_alloc_host_bridge(dev, sizeof(*pcie));
    1210         if (!host)
    1211                 return -ENOMEM;
    1212 
    1213         pcie = pci_host_bridge_priv(host);
    1214 
    1215         pcie->dev = dev;
    1216         pcie->soc = device_get_match_data(dev);
    1217         platform_set_drvdata(pdev, pcie);
    1218 
    1219         err = mtk_pcie_setup_irq(pcie);
    1220         if (err)
    1221                 return dev_err_probe(dev, err, "Failed to setup IRQ domains\n");
    1222 
    1223         err = pci_pwrctrl_create_devices(pcie->dev);
    1224         if (err) {
    1225                 goto err_tear_down_irq;
--> 1226                 dev_err_probe(dev, err, "failed to create pwrctrl devices\n");

The error message is unreachable.

    1227         }
    1228 
    1229         err = mtk_pcie_setup(pcie);

This email is a free service from the Smatch-CI project [smatch.sf.net].

regards,
dan carpenter


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-10 10:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 10:14 [bug report] PCI: mediatek-gen3: Integrate new pwrctrl API Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.