Skip to content

Commit 6f10255

Browse files
committed
PCI: fu740: Remove unused assignments
fu740_pcie_host_init() assigned "ret", but never used the value. Drop it. Found by Krzysztof using cppcheck: $ cppcheck --enable=all --force unreadVariable drivers/pci/controller/dwc/pcie-fu740.c:227 Variable 'ret' is assigned a value that is never used. Reported-by: Krzysztof Wilczyński <kw@linux.com> Link: https://lore.kernel.org/r/20220313192933.434746-4-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent b6829e0 commit 6f10255

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int fu740_pcie_host_init(struct pcie_port *pp)
224224
/* Clear hold_phy_rst */
225225
writel_relaxed(0x0, afp->mgmt_base + PCIEX8MGMT_APP_HOLD_PHY_RST);
226226
/* Enable pcieauxclk */
227-
ret = clk_prepare_enable(afp->pcie_aux);
227+
clk_prepare_enable(afp->pcie_aux);
228228
/* Set RC mode */
229229
writel_relaxed(0x4, afp->mgmt_base + PCIEX8MGMT_DEVICE_TYPE);
230230

0 commit comments

Comments
 (0)