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

Commit f57dc798 authored by Tony Truong's avatar Tony Truong
Browse files

msm: pcie: correct an error message in msm_pcie_destroy_irq



The function irq_get_chip_data may return NULL. This change
corrects the error message to not use the device that is
returned from irq_get_chip_data.

Change-Id: I42950140d0b5f98aacc561aa7a15017439e15460
Signed-off-by: default avatarTony Truong <truong@codeaurora.org>
parent ffba4ad6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3122,7 +3122,7 @@ void msm_pcie_destroy_irq(unsigned int irq, struct msm_pcie_dev_t *pcie_dev)
		dev = irq_get_chip_data(irq);

	if (!dev) {
		PCIE_ERR(dev, "RC%d: could not get chip data\n", dev->rc_idx);
		pr_err("PCIe: device is null. IRQ:%d\n", irq);
		return;
	}