aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2005-11-07 03:58:06 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-07 10:53:25 -0500
commit9954ab7fd52afedf0977893352bb3ddb07120214 (patch)
tree84a256331fc03514d3a29c3828aad725d7d9474c
parent32fb5f06dbb6ca007f7886eb210b7b15545e2e15 (diff)
[PATCH] 3c59x: cleanup init of module parameter arrays
Beautify the array initilizations for the module parameters. Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/net/3c59x.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/3c59x.c b/drivers/net/3c59x.c
index 78f90eb02b9c..0139d4b061ed 100644
--- a/drivers/net/3c59x.c
+++ b/drivers/net/3c59x.c
@@ -903,11 +903,11 @@ static void set_8021q_mode(struct net_device *dev, int enable);
903/* This driver uses 'options' to pass the media type, full-duplex flag, etc. */ 903/* This driver uses 'options' to pass the media type, full-duplex flag, etc. */
904/* Option count limit only -- unlimited interfaces are supported. */ 904/* Option count limit only -- unlimited interfaces are supported. */
905#define MAX_UNITS 8 905#define MAX_UNITS 8
906static int options[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1,}; 906static int options[MAX_UNITS] = { [0 ... MAX_UNITS-1] = -1 };
907static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1}; 907static int full_duplex[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
908static int hw_checksums[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1}; 908static int hw_checksums[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
909static int flow_ctrl[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1}; 909static int flow_ctrl[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
910static int enable_wol[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1}; 910static int enable_wol[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
911static int global_options = -1; 911static int global_options = -1;
912static int global_full_duplex = -1; 912static int global_full_duplex = -1;
913static int global_enable_wol = -1; 913static int global_enable_wol = -1;