2008-06-20 15:05:14

by Bernhard Walle

[permalink] [raw]
Subject: [PATCH] Remove unused variable.

This patch just fixes the compiler warning:

drivers/pci/quirks.c: In function ‘quirk_reroute_to_boot_interrupts_intel’:
drivers/pci/quirks.c:1375: warning: unused variable ‘i’


Signed-off-by: Bernhard Walle <[email protected]>
---
drivers/pci/quirks.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 4b5b49e..292cf26 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1372,8 +1372,6 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x260b, quirk_intel_pcie_pm);
*/
static void quirk_reroute_to_boot_interrupts_intel(struct pci_dev *dev)
{
- int i;
-
if (noioapicquirk)
return;

--
1.5.4.5


2008-06-24 11:34:37

by Ingo Molnar

[permalink] [raw]
Subject: Re: [PATCH] Remove unused variable.


* Bernhard Walle <[email protected]> wrote:

> This patch just fixes the compiler warning:
>
> drivers/pci/quirks.c: In function ‘quirk_reroute_to_boot_interrupts_intel’:
> drivers/pci/quirks.c:1375: warning: unused variable ‘i’

applied to tip/x86/pci-ioapic-boot-irq-quirks, thanks Bernhard.

Ingo