summaryrefslogtreecommitdiffstats
path: root/kiss/mkiss.c
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 /kiss/mkiss.c
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 'kiss/mkiss.c')
-rw-r--r--kiss/mkiss.c16
1 files changed, 8 insertions, 8 deletions
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 <num_ptmx_devices>] 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);