Skip to content

Commit b6829e0

Browse files
committed
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>
1 parent c50762a commit b6829e0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/pci/controller/dwc/pcie-kirin.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,6 @@ static int hi3660_pcie_phy_init(struct platform_device *pdev,
332332
pcie->phy_priv = phy;
333333
phy->dev = dev;
334334

335-
/* registers */
336-
pdev = container_of(dev, struct platform_device, dev);
337-
338335
ret = hi3660_pcie_phy_get_clk(phy);
339336
if (ret)
340337
return ret;

0 commit comments

Comments
 (0)