mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
[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>
This commit is contained in:
parent
32fb5f06db
commit
9954ab7fd5
@ -903,11 +903,11 @@ static void set_8021q_mode(struct net_device *dev, int enable);
|
||||
/* This driver uses 'options' to pass the media type, full-duplex flag, etc. */
|
||||
/* Option count limit only -- unlimited interfaces are supported. */
|
||||
#define MAX_UNITS 8
|
||||
static int options[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1,};
|
||||
static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
||||
static int hw_checksums[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
||||
static int flow_ctrl[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
||||
static int enable_wol[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
||||
static int options[MAX_UNITS] = { [0 ... MAX_UNITS-1] = -1 };
|
||||
static int full_duplex[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
|
||||
static int hw_checksums[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
|
||||
static int flow_ctrl[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
|
||||
static int enable_wol[MAX_UNITS] = {[0 ... MAX_UNITS-1] = -1 };
|
||||
static int global_options = -1;
|
||||
static int global_full_duplex = -1;
|
||||
static int global_enable_wol = -1;
|
||||
|
Loading…
Reference in New Issue
Block a user