From: Vladimir A. Nazarenko Date: Wed, 27 Aug 2014 06:48:21 +0000 (+1100) Subject: Staging: comedi: Fix code style in jr3_pci.c X-Git-Tag: v3.18-rc1~130^2~985 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=165356c7cc931b5f441e52e5d2227d077b7c8271;p=karo-tx-linux.git Staging: comedi: Fix code style in jr3_pci.c Static variables are initialised to 0 by GCC. Fixes checkpatch.pl error: ERROR: do not initialise statics to 0 or NULL #684: FILE: jr3_pci.c:684: + static const struct jr3_pci_board *board = NULL; Signed-off-by: Vladimir A. Nazarenko Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/jr3_pci.c b/drivers/staging/comedi/drivers/jr3_pci.c index 7b20e19ecbf7..81fab2dfafa4 100644 --- a/drivers/staging/comedi/drivers/jr3_pci.c +++ b/drivers/staging/comedi/drivers/jr3_pci.c @@ -681,7 +681,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev, unsigned long context) { struct pci_dev *pcidev = comedi_to_pci_dev(dev); - static const struct jr3_pci_board *board = NULL; + static const struct jr3_pci_board *board; struct jr3_pci_dev_private *devpriv; struct jr3_pci_subdev_private *spriv; struct comedi_subdevice *s;