Skip to content

Commit

Permalink
parport: cleanup statics initialization to NULL or 0
Browse files Browse the repository at this point in the history
based on checkpatch, cleanup the "do not initialise statics to" 0 or NULL.

Signed-off-by: Carlos Palminha <[email protected]>
Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Carlos Palminha authored and gregkh committed Aug 28, 2017
1 parent 6979b92 commit df4c756
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/parport/daisy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/parport/parport_atari.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/parport/parport_ip32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion drivers/parport/parport_mfc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit df4c756

Please sign in to comment.