Skip to content

Commit ff4659c

Browse files
GelmaRussell King
authored andcommitted
ARM: arch/arm/mach-shark/pci.c: Checkpatch cleanup
arch/arm/mach-shark/pci.c:19: ERROR: trailing statements should be on next line arch/arm/mach-shark/pci.c:20: ERROR: trailing statements should be on next line arch/arm/mach-shark/pci.c:21: ERROR: trailing statements should be on next line arch/arm/mach-shark/pci.c:24: WARNING: externs should be avoided in .c files arch/arm/mach-shark/pci.c:28: WARNING: please, no space before tabs Signed-off-by: Andrea Gelmini <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 9ffdfb4 commit ff4659c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

arch/arm/mach-shark/pci.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@
1616
static int __init shark_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
1717
{
1818
if (dev->bus->number == 0)
19-
if (dev->devfn == 0) return 255;
20-
else return 11;
21-
else return 255;
19+
if (dev->devfn == 0)
20+
return 255;
21+
else
22+
return 11;
23+
else
24+
return 255;
2225
}
2326

2427
extern void __init via82c505_preinit(void);
2528

2629
static struct hw_pci shark_pci __initdata = {
2730
.setup = via82c505_setup,
28-
.swizzle = pci_std_swizzle,
31+
.swizzle = pci_std_swizzle,
2932
.map_irq = shark_map_irq,
3033
.nr_controllers = 1,
3134
.scan = via82c505_scan_bus,

0 commit comments

Comments
 (0)