[PATCH] bond_main.c: uninitialize static variables initialized to 0 From: Carlo Perassi Signed-off-by: Carlo Perassi Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/net/bonding/bond_main.c =================================================================== --- linux-kj.orig/drivers/net/bonding/bond_main.c 2005-09-21 01:19:07.000000000 +0400 +++ linux-kj/drivers/net/bonding/bond_main.c 2005-09-21 01:25:50.000000000 +0400 @@ -546,15 +546,15 @@ static int max_bonds = BOND_DEFAULT_MAX_BONDS; static int miimon = BOND_LINK_MON_INTERV; -static int updelay = 0; -static int downdelay = 0; +static int updelay; +static int downdelay; static int use_carrier = 1; -static char *mode = NULL; -static char *primary = NULL; -static char *lacp_rate = NULL; -static char *xmit_hash_policy = NULL; +static char *mode; +static char *primary; +static char *lacp_rate; +static char *xmit_hash_policy; static int arp_interval = BOND_LINK_ARP_INTERV; -static char *arp_ip_target[BOND_MAX_ARP_TARGETS] = { NULL, }; +static char *arp_ip_target[BOND_MAX_ARP_TARGETS]; module_param(max_bonds, int, 0); MODULE_PARM_DESC(max_bonds, "Max number of bonded devices"); @@ -590,12 +590,12 @@ static LIST_HEAD(bond_dev_list); static struct proc_dir_entry *bond_proc_dir = NULL; #endif -static u32 arp_target[BOND_MAX_ARP_TARGETS] = { 0, } ; -static int arp_ip_count = 0; +static u32 arp_target[BOND_MAX_ARP_TARGETS]; +static int arp_ip_count; static int bond_mode = BOND_MODE_ROUNDROBIN; static int xmit_hashtype= BOND_XMIT_POLICY_LAYER2; -static int lacp_fast = 0; -static int app_abi_ver = 0; +static int lacp_fast; +static int app_abi_ver; static int orig_app_abi_ver = -1; /* This is used to save the first ABI version * we receive from the application. Once set, * it won't be changed, and the module will