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 --- kiss/mkiss.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'kiss/mkiss.c') diff --git a/kiss/mkiss.c b/kiss/mkiss.c index 7cce904..3abcbbd 100644 --- a/kiss/mkiss.c +++ b/kiss/mkiss.c @@ -78,9 +78,9 @@ static unsigned char ibuf[SIZE]; /* buffer for input operations */ static unsigned char obuf[SIZE]; /* buffer for kiss_tx() */ -static int crc_errors = 0; -static int invalid_ports = 0; -static int return_polls = 0; +static int crc_errors; +static int invalid_ports; +static int return_polls ; static char *usage_string = "usage: mkiss [-p interval] [-c] [-f] [-h] [-l] [-s speed] [-v] [-x ] ttyinterface pty ..\n"; @@ -89,7 +89,7 @@ static int dump_report = FALSE; static int logging = FALSE; static int crcflag = FALSE; static int hwflag = FALSE; -static int pollspeed = 0; +static int pollspeed; /* CRC-stuff */ typedef unsigned short int u16; @@ -114,9 +114,9 @@ struct iface * the client has to use */ }; -static struct iface *tty = NULL; -static struct iface *pty[16] = { NULL }; -static int numptys = 0; +static struct iface *tty; +static struct iface *pty[16]; +static int numptys; static void init_crc(void) { @@ -143,7 +143,7 @@ static void init_crc(void) static int poll(int fd, int ports) { char buffer[3]; - static int port = 0; + static int port; buffer[0] = FEND; buffer[1] = POLL | (port << 4); -- cgit v1.2.3