From: Bjorn Helgaas Date: Sun, 13 Mar 2022 19:29:30 +0000 (-0500) Subject: PCI: kirin: Remove unused assignments X-Git-Tag: howlett/maple/20220722_2~916^2~15^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b6829e0419e5b3deafce5455da588c39deda77fa;p=users%2Fjedix%2Flinux-maple.git 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 Link: https://lore.kernel.org/r/20220313192933.434746-3-helgaas@kernel.org Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/controller/dwc/pcie-kirin.c b/drivers/pci/controller/dwc/pcie-kirin.c index fa6886d66488a..5b56cedebdf18 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;