summaryrefslogtreecommitdiffstats
path: root/netrom
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 01:42:05 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:11:30 +0200
commit5feb3d651dbd1b096a26963bd1dffcfe0a5f9eea (patch)
treeaa82bb7320480efba49b850b21193ecfee963fe3 /netrom
parent1245fbd2a8d60bab7b16b8a1d3c0122fee72f53f (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>
Diffstat (limited to 'netrom')
-rw-r--r--netrom/netromd.c2
-rw-r--r--netrom/nrattach.c2
-rw-r--r--netrom/nrsdrv.c6
3 files changed, 5 insertions, 5 deletions
diff --git a/netrom/netromd.c b/netrom/netromd.c
index a78db4b..bd2b69c 100644
--- a/netrom/netromd.c
+++ b/netrom/netromd.c
@@ -40,7 +40,7 @@ struct port_struct port_list[20];
int port_count = FALSE;
int compliant = FALSE;
int logging = FALSE;
-int debug = 0;
+int debug;
ax25_address my_call;
ax25_address node_call;
diff --git a/netrom/nrattach.c b/netrom/nrattach.c
index 0f8055e..87ff5aa 100644
--- a/netrom/nrattach.c
+++ b/netrom/nrattach.c
@@ -27,7 +27,7 @@
#include "../pathnames.h"
char *callsign;
-int mtu = 0;
+int mtu;
int readconfig(char *port)
{
diff --git a/netrom/nrsdrv.c b/netrom/nrsdrv.c
index 4383f84..c58c13f 100644
--- a/netrom/nrsdrv.c
+++ b/netrom/nrsdrv.c
@@ -39,10 +39,10 @@ static char *kissdev, *nrsdev;
#define NRS_CKSUM 3
static int nrs_state = NRS_WAIT;
-static unsigned char nrs_cksum = 0;
+static unsigned char nrs_cksum;
static unsigned char nrs_rxbuffer[512];
-static int nrs_rxcount = 0;
+static int nrs_rxcount;
#define FEND 0300
#define FESC 0333
@@ -56,7 +56,7 @@ static int nrs_rxcount = 0;
static int kiss_state = KISS_WAIT;
static unsigned char kiss_rxbuffer[512];
-static int kiss_rxcount = 0;
+static int kiss_rxcount;
static void terminate(int sig)
{