Commit 0d3979b9 authored by Fabian Frederick's avatar Fabian Frederick Committed by David S. Miller

ipv4: remove 0/NULL assignment on static

static values are automatically initialized to 0
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c9f503b0
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
*/ */
int ic_set_manually __initdata = 0; /* IPconfig parameters set manually */ int ic_set_manually __initdata = 0; /* IPconfig parameters set manually */
static int ic_enable __initdata = 0; /* IP config enabled? */ static int ic_enable __initdata; /* IP config enabled? */
/* Protocol choice */ /* Protocol choice */
int ic_proto_enabled __initdata = 0 int ic_proto_enabled __initdata = 0
...@@ -130,7 +130,7 @@ int ic_proto_enabled __initdata = 0 ...@@ -130,7 +130,7 @@ int ic_proto_enabled __initdata = 0
#endif #endif
; ;
static int ic_host_name_set __initdata = 0; /* Host name set by us? */ static int ic_host_name_set __initdata; /* Host name set by us? */
__be32 ic_myaddr = NONE; /* My IP address */ __be32 ic_myaddr = NONE; /* My IP address */
static __be32 ic_netmask = NONE; /* Netmask for local subnet */ static __be32 ic_netmask = NONE; /* Netmask for local subnet */
...@@ -160,17 +160,17 @@ static u8 ic_domain[64]; /* DNS (not NIS) domain name */ ...@@ -160,17 +160,17 @@ static u8 ic_domain[64]; /* DNS (not NIS) domain name */
static char user_dev_name[IFNAMSIZ] __initdata = { 0, }; static char user_dev_name[IFNAMSIZ] __initdata = { 0, };
/* Protocols supported by available interfaces */ /* Protocols supported by available interfaces */
static int ic_proto_have_if __initdata = 0; static int ic_proto_have_if __initdata;
/* MTU for boot device */ /* MTU for boot device */
static int ic_dev_mtu __initdata = 0; static int ic_dev_mtu __initdata;
#ifdef IPCONFIG_DYNAMIC #ifdef IPCONFIG_DYNAMIC
static DEFINE_SPINLOCK(ic_recv_lock); static DEFINE_SPINLOCK(ic_recv_lock);
static volatile int ic_got_reply __initdata = 0; /* Proto(s) that replied */ static volatile int ic_got_reply __initdata; /* Proto(s) that replied */
#endif #endif
#ifdef IPCONFIG_DHCP #ifdef IPCONFIG_DHCP
static int ic_dhcp_msgtype __initdata = 0; /* DHCP msg type received */ static int ic_dhcp_msgtype __initdata; /* DHCP msg type received */
#endif #endif
...@@ -186,8 +186,8 @@ struct ic_device { ...@@ -186,8 +186,8 @@ struct ic_device {
__be32 xid; __be32 xid;
}; };
static struct ic_device *ic_first_dev __initdata = NULL;/* List of open device */ static struct ic_device *ic_first_dev __initdata; /* List of open device */
static struct net_device *ic_dev __initdata = NULL; /* Selected device */ static struct net_device *ic_dev __initdata; /* Selected device */
static bool __init ic_is_init_dev(struct net_device *dev) static bool __init ic_is_init_dev(struct net_device *dev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment