diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2022-03-13 14:29:30 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-03-22 11:24:13 -0500 |
commit | b6829e0419e5b3deafce5455da588c39deda77fa (patch) | |
tree | 8000ee970515ce01c1952cc7a0c5d48bc649f4f0 /drivers/pci | |
parent | c50762a85da6a95a96a20043ed518264b62b47df (diff) | |
download | lwn-b6829e0419e5b3deafce5455da588c39deda77fa.tar.gz lwn-b6829e0419e5b3deafce5455da588c39deda77fa.zip |
PCI: kirin: Remove unused assignments
hi3660_pcie_phy_init() assigned "pdev", but never used the value. Drop it.
Found by Krzysztof using cppcheck:
$ cppcheck --enable=all --force
unreadVariable drivers/pci/controller/dwc/pcie-kirin.c:336 Variable 'pdev' is assigned a value that is never used.
Reported-by: Krzysztof Wilczyński <kw@linux.com>
Link: https://lore.kernel.org/r/20220313192933.434746-3-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/controller/dwc/pcie-kirin.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c index fa6886d66488..5b56cedebdf1 100644 --- a/drivers/pci/controller/dwc/pcie-kirin.c +++ b/drivers/pci/controller/dwc/pcie-kirin.c @@ -332,9 +332,6 @@ static int hi3660_pcie_phy_init(struct platform_device *pdev, pcie->phy_priv = phy; phy->dev = dev; - /* registers */ - pdev = container_of(dev, struct platform_device, dev); - ret = hi3660_pcie_phy_get_clk(phy); if (ret) return ret; |