summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMariano Guerra <luismarianoguerra@gmail.com>2011-07-16 02:11:23 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-23 11:56:47 -0700
commit654e8fb522b3c8af3c5b35d6f474e51218ef8f9a (patch)
tree104eb2014b6569f5b907971c5bbba3611bb6b6e9
parentf5283a4bb8f5ef274e9de58c751edb2a2d66bef4 (diff)
downloadlinux-654e8fb522b3c8af3c5b35d6f474e51218ef8f9a.tar.bz2
Staging: comedi: do not initialise statics to 0 or NULL
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>
-rw-r--r--drivers/staging/comedi/drivers/adv_pci_dio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/adv_pci_dio.c b/drivers/staging/comedi/drivers/adv_pci_dio.c
index d23799be7ce2..69334f6f64e8 100644
--- a/drivers/staging/comedi/drivers/adv_pci_dio.c
+++ b/drivers/staging/comedi/drivers/adv_pci_dio.c
@@ -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)