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 --- hdlcutil/fl/xfsmdiag_main.cxx | 2 +- hdlcutil/hdrvcomm.c | 2 +- hdlcutil/sethdlc.c | 2 +- hdlcutil/smdiag.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'hdlcutil') diff --git a/hdlcutil/fl/xfsmdiag_main.cxx b/hdlcutil/fl/xfsmdiag_main.cxx index 1fd0dd8..2e05c29 100644 --- a/hdlcutil/fl/xfsmdiag_main.cxx +++ b/hdlcutil/fl/xfsmdiag_main.cxx @@ -53,7 +53,7 @@ /* ---------------------------------------------------------------------- */ static char *progname; -static unsigned int drawflags = 0; +static unsigned int drawflags; /* ---------------------------------------------------------------------- */ diff --git a/hdlcutil/hdrvcomm.c b/hdlcutil/hdrvcomm.c index 9f387ee..d27a37f 100644 --- a/hdlcutil/hdrvcomm.c +++ b/hdlcutil/hdrvcomm.c @@ -69,7 +69,7 @@ static const char *if_name = "bcsf0"; static char *prg_name; static int fd = -1; static struct ifreq ifr_h; -static int promisc = 0; +static int promisc; static int afpacket = 1; static int msqid = -1; diff --git a/hdlcutil/sethdlc.c b/hdlcutil/sethdlc.c index faa4765..3389a9e 100644 --- a/hdlcutil/sethdlc.c +++ b/hdlcutil/sethdlc.c @@ -47,7 +47,7 @@ /* ---------------------------------------------------------------------- */ -static unsigned char trace_stat = 0; +static unsigned char trace_stat; static char *progname; /* ---------------------------------------------------------------------- */ diff --git a/hdlcutil/smdiag.c b/hdlcutil/smdiag.c index 7dd9a00..6f9a79b 100644 --- a/hdlcutil/smdiag.c +++ b/hdlcutil/smdiag.c @@ -51,7 +51,7 @@ /* ---------------------------------------------------------------------- */ static char *progname; -static Display *display = NULL; +static Display *display; static Window window; static Pixmap pixmap; static unsigned long col_zeroline; -- cgit v1.2.3