summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 01:42:03 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:04:02 +0200
commitda5b97c823d64758eb2d092a0eee500119385529 (patch)
treedb23212cb5eeadff726b6d378f38bbf7c082c6b1
parentd41edac9583dd2a4925fcd30b6ef646e9c76e465 (diff)
Remove useless initializations to 0 or NULL.
They only inflate the .data section of the binary. Initializations to FALSE are still left to do. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25io.c2
-rw-r--r--axconfig.c4
-rw-r--r--nrconfig.c4
-rw-r--r--rsconfig.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/ax25io.c b/ax25io.c
index b8d05f4..eba7b02 100644
--- a/ax25io.c
+++ b/ax25io.c
@@ -13,7 +13,7 @@ static inline int send_iac_iac(ax25io *p);
static inline int send_iac_cmd(ax25io *p, unsigned char cmd, unsigned char opt);
static inline int send_linemode(ax25io *p);
-static ax25io *Iolist = NULL;
+static ax25io *Iolist;
/* --------------------------------------------------------------------- */
diff --git a/axconfig.c b/axconfig.c
index 7c37323..4e83822 100644
--- a/axconfig.c
+++ b/axconfig.c
@@ -29,8 +29,8 @@ typedef struct _axport
char *Description;
} AX_Port;
-static AX_Port *ax25_ports = NULL;
-static AX_Port *ax25_port_tail = NULL;
+static AX_Port *ax25_ports;
+static AX_Port *ax25_port_tail;
static int is_same_call(char *call1, char *call2)
{
diff --git a/nrconfig.c b/nrconfig.c
index f275a15..aea1e52 100644
--- a/nrconfig.c
+++ b/nrconfig.c
@@ -29,8 +29,8 @@ typedef struct _nrport
char *Description;
} NR_Port;
-static NR_Port *nr_ports = NULL;
-static NR_Port *nr_port_tail = NULL;
+static NR_Port *nr_ports;
+static NR_Port *nr_port_tail;
static int is_same_call(char *call1, char *call2)
{
diff --git a/rsconfig.c b/rsconfig.c
index aac3129..d2e9446 100644
--- a/rsconfig.c
+++ b/rsconfig.c
@@ -28,8 +28,8 @@ typedef struct _rsport
char *Description;
} RS_Port;
-static RS_Port *rs_ports = NULL;
-static RS_Port *rs_port_tail = NULL;
+static RS_Port *rs_ports;
+static RS_Port *rs_port_tail;
static RS_Port *rs_port_ptr(char *name)
{