Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-3
-3
drivers/pci/controller/dwc/pcie-kirin.c
··· 332 332 pcie->phy_priv = phy; 333 333 phy->dev = dev; 334 334 335 - /* registers */ 336 - pdev = container_of(dev, struct platform_device, dev); 337 - 338 335 ret = hi3660_pcie_phy_get_clk(phy); 339 336 if (ret) 340 337 return ret;