Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5827f40 authored by Adrian Bunk's avatar Adrian Bunk Committed by Jesse Barnes
Browse files

PCI: fix pciehp_free_irq()



This patch fixes an obvious bug (loop was never entered) caused by
commit 820943b6
(pciehp: cleanup pcie_poll_cmd).

Reported-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Acked-by: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 48902025
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -258,7 +258,7 @@ static int pcie_poll_cmd(struct controller *ctrl)
			return 1;
			return 1;
		}
		}
	}
	}
	while (timeout > 1000) {
	while (timeout > 0) {
		msleep(10);
		msleep(10);
		timeout -= 10;
		timeout -= 10;
		if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) {
		if (!pciehp_readw(ctrl, SLOTSTATUS, &slot_status)) {