Skip to content

Commit

Permalink
Staging: comedi: do not initialise statics to 0 or NULL
Browse files Browse the repository at this point in the history
This is a patch to adv_pci_dio.c that fixes an error initializing

static struct pci_dio_private *pci_priv to NULL

removed the initialization.
found by the checkpatch.pl tool.

	Signed-off-by: Mariano Guerra <luismarianoguerra@gmail.com>

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Mariano Guerra authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent f5283a4 commit 654e8fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/adv_pci_dio.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ struct pci_dio_private {
unsigned short IDIFiltrHigh[8]; /* IDI's filter value high signal */
};

static struct pci_dio_private *pci_priv = NULL; /* list of allocated cards */
static struct pci_dio_private *pci_priv; /* list of allocated cards */

#define devpriv ((struct pci_dio_private *)dev->private)
#define this_board ((const struct dio_boardtype *)dev->board_ptr)
Expand Down

0 comments on commit 654e8fb

Please sign in to comment.