summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-altera-msi.c
diff options
context:
space:
mode:
authorShawn Lin2017-07-12 11:51:16 +0200
committerBjorn Helgaas2017-08-16 18:41:20 +0200
commit8a3073860b7389ee4b6754961b05e15187dac33b (patch)
treea3b5805a41f8908be13fa407043693db6c98c8fc /drivers/pci/host/pcie-altera-msi.c
parentPCI: Add pci_irqd_intx_xlate() (diff)
downloadkernel-qcow2-linux-8a3073860b7389ee4b6754961b05e15187dac33b.tar.gz
kernel-qcow2-linux-8a3073860b7389ee4b6754961b05e15187dac33b.tar.xz
kernel-qcow2-linux-8a3073860b7389ee4b6754961b05e15187dac33b.zip
PCI: altera: Remove unused num_of_vectors variable
The local variable "num_of_vectors" was unused, so remove it. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Ley Foon Tan <lftan@altera.com>
Diffstat (limited to 'drivers/pci/host/pcie-altera-msi.c')
-rw-r--r--drivers/pci/host/pcie-altera-msi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/host/pcie-altera-msi.c b/drivers/pci/host/pcie-altera-msi.c
index 4e5d628e8cd4..2864030789f0 100644
--- a/drivers/pci/host/pcie-altera-msi.c
+++ b/drivers/pci/host/pcie-altera-msi.c
@@ -64,13 +64,11 @@ static void altera_msi_isr(struct irq_desc *desc)
struct irq_chip *chip = irq_desc_get_chip(desc);
struct altera_msi *msi;
unsigned long status;
- u32 num_of_vectors;
u32 bit;
u32 virq;
chained_irq_enter(chip, desc);
msi = irq_desc_get_handler_data(desc);
- num_of_vectors = msi->num_of_vectors;
while ((status = msi_readl(msi, MSI_STATUS)) != 0) {
for_each_set_bit(bit, &status, msi->num_of_vectors) {