Staging: comedi: do not initialise statics to 0 or NULL
authorMariano Guerra <luismarianoguerra@gmail.com>
Sat, 16 Jul 2011 01:11:23 +0000 (02:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 18:56:47 +0000 (11:56 -0700)
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>
drivers/staging/comedi/drivers/adv_pci_dio.c

index d23799b..69334f6 100644 (file)
@@ -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)