Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Fix coding style warnings and errors.

This is a patch to clean checkpatch warnings and errors
in the Space.c file.
Clean up the following warnings and errors.

WARNING :
* Block comments use * on subsequent lines
* Missing a blank line after declarations
* networking block comments don't use an empty /* line, use /*
* please, no space before tabs
* please, no spaces at the start of a line
* line over 80 characters

ERROR :
* code indent should use tabs where possible
* space prohibited after that open parenthesis '('

Signed-off-by: Amit Ghadge <amitg.b14@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Amit Ghadge and committed by
David S. Miller
6104503c 87553aa5

+10 -11
+10 -11
drivers/net/Space.c
··· 35 35 #include <net/Space.h> 36 36 37 37 /* A unified ethernet device probe. This is the easiest way to have every 38 - ethernet adaptor have the name "eth[0123...]". 39 - */ 38 + * ethernet adaptor have the name "eth[0123...]". 39 + */ 40 40 41 41 struct devprobe2 { 42 42 struct net_device *(*probe)(int unit); ··· 46 46 static int __init probe_list2(int unit, struct devprobe2 *p, int autoprobe) 47 47 { 48 48 struct net_device *dev; 49 + 49 50 for (; p->probe; p++) { 50 51 if (autoprobe && p->status) 51 52 continue; ··· 59 58 return -ENODEV; 60 59 } 61 60 62 - /* 63 - * ISA probes that touch addresses < 0x400 (including those that also 61 + /* ISA probes that touch addresses < 0x400 (including those that also 64 62 * look for EISA/PCI cards in addition to ISA cards). 65 63 */ 66 64 static struct devprobe2 isa_probes[] __initdata = { ··· 86 86 #endif 87 87 #ifdef CONFIG_CS89x0 88 88 #ifndef CONFIG_CS89x0_PLATFORM 89 - {cs89x0_probe, 0}, 89 + {cs89x0_probe, 0}, 90 90 #endif 91 91 #endif 92 - #if defined(CONFIG_MVME16x_NET) || defined(CONFIG_BVME6000_NET) /* Intel I82596 */ 93 - {i82596_probe, 0}, 92 + #if defined(CONFIG_MVME16x_NET) || defined(CONFIG_BVME6000_NET) /* Intel */ 93 + {i82596_probe, 0}, /* I82596 */ 94 94 #endif 95 95 #ifdef CONFIG_NI65 96 96 {ni65_probe, 0}, ··· 118 118 {mac8390_probe, 0}, 119 119 #endif 120 120 #ifdef CONFIG_MAC89x0 121 - {mac89x0_probe, 0}, 121 + {mac89x0_probe, 0}, 122 122 #endif 123 123 {NULL, 0}, 124 124 }; 125 125 126 - /* 127 - * Unified ethernet device probe, segmented per architecture and 126 + /* Unified ethernet device probe, segmented per architecture and 128 127 * per bus interface. This drives the legacy devices only for now. 129 128 */ 130 129 ··· 134 135 if (base_addr == 1) 135 136 return; 136 137 137 - (void)( probe_list2(unit, m68k_probes, base_addr == 0) && 138 + (void)(probe_list2(unit, m68k_probes, base_addr == 0) && 138 139 probe_list2(unit, isa_probes, base_addr == 0)); 139 140 } 140 141