From 5feb3d651dbd1b096a26963bd1dffcfe0a5f9eea Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 5 Jun 2013 01:42:05 +0200 Subject: 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 --- netrom/netromd.c | 2 +- netrom/nrattach.c | 2 +- netrom/nrsdrv.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'netrom') 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) { -- cgit v1.2.3