parport: cleanup statics initialization to NULL or 0
authorCarlos Palminha <CARLOS.PALMINHA@synopsys.com>
Sat, 12 Aug 2017 21:45:49 +0000 (22:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:25:43 +0000 (17:25 +0200)
based on checkpatch, cleanup the "do not initialise statics to" 0 or NULL.

Signed-off-by: Carlos Palminha <palminha@synopsys.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parport/daisy.c
drivers/parport/parport_atari.c
drivers/parport/parport_ip32.c
drivers/parport/parport_mfc3.c

index 46eb15fb57fff413879e809074e3ffe654e84717..5484a46dafda857a7e64207ccac4a8249cf1512c 100644 (file)
@@ -44,7 +44,7 @@ static struct daisydev {
 } *topology = NULL;
 static DEFINE_SPINLOCK(topology_lock);
 
-static int numdevs = 0;
+static int numdevs;
 
 /* Forward-declaration of lower-level functions. */
 static int mux_present(struct parport *port);
index a81cd2a2747f71a1e0b1600be4781d29f9e228f8..9fbf6ccd54de7d40b60b9bc62772086a660b408f 100644 (file)
@@ -18,7 +18,7 @@
 #include <asm/irq.h>
 #include <asm/atariints.h>
 
-static struct parport *this_port = NULL;
+static struct parport *this_port;
 
 static unsigned char
 parport_atari_read_data(struct parport *p)
index dcbeeb220dda7d84a4f823c0ed2c2c85bc8b6f9a..0186db7680d4f43137532382b549949effeef250 100644 (file)
@@ -138,7 +138,7 @@ static unsigned int features =      ~0U;
 static bool verbose_probing =  DEFAULT_VERBOSE_PROBING;
 
 /* We do not support more than one port. */
-static struct parport *this_port = NULL;
+static struct parport *this_port;
 
 /* Timing constants for FIFO modes.  */
 #define FIFO_NFAULT_TIMEOUT    100     /* milliseconds */
index 2f650f68af14e4ec9e37e2c837db3fd55408b9ff..7f4be0e484c7494b9a23166fbf0f9cfa2c6756fa 100644 (file)
@@ -174,7 +174,7 @@ DPRINTK(KERN_DEBUG "read_status %02x\n", status);
        return status;
 }
 
-static int use_cnt = 0;
+static int use_cnt;
 
 static irqreturn_t mfc3_interrupt(int irq, void *dev_id)
 {