ARM: integrator: remove unused variable
Subsystems (3)
PATCH 1/1 ARM: integrator: remove unused variable
The patch to add the new generic config space accessors removed a useless spinlock, but left the flags variable in place, which now causes a build warning:
arch/arm/mach-integrator/pci_v3.c: In function 'pci_v3_preinit':arch/arm/mach-integrator/pci_v3.c:614:16: warning: unused variable 'flags' [-Wunused-variable]
This removes it.
arch/arm/mach-integrator/pci_v3.c +0 -1
@@ -611,7 +611,6 @@ static int __init pci_v3_setup(int nr, struct pci_sys_data *sys)*/ static void __init pci_v3_preinit (void ) { -unsigned long flags;unsigned int temp;phys_addr_t io_address =pci_pio_to_address (io_mem.start);
Bjorn Helgaas
maintainerPATCH 1/1 ARM: integrator: remove unused variable
Quoted 11 lines · Arnd Bergmann
The patch to add the new generic config space accessors removed a useless spinlock, but left the flags variable in place, which now causes a build warning:
arch/arm/mach-integrator/pci_v3.c: In function 'pci_v3_preinit':arch/arm/mach-integrator/pci_v3.c:614:16: warning: unused variable 'flags' [-Wunused-variable]This removes it.
Signed-off-by Arnd Bergmann <[email protected]>Fixes 1ba525109219 ("ARM: integrator: Convert PCI to use generic config accessors")
Folded in, thanks!
Quoted 14 lines
arch/arm/mach-integrator/pci_v3.c +0
-1@@ -611,7 +611,6 @@ static int __init pci_v3_setup(int nr, struct pci_sys_data *sys)*/ static void __init pci_v3_preinit (void ) { -unsigned long flags;unsigned int temp;phys_addr_t io_address =pci_pio_to_address (io_mem.start);