Commit 165356c7 authored by Vladimir A. Nazarenko's avatar Vladimir A. Nazarenko Committed by Greg Kroah-Hartman

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: default avatarVladimir A. Nazarenko <naszar@ya.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b83d9fae
...@@ -681,7 +681,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev, ...@@ -681,7 +681,7 @@ static int jr3_pci_auto_attach(struct comedi_device *dev,
unsigned long context) unsigned long context)
{ {
struct pci_dev *pcidev = comedi_to_pci_dev(dev); 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_dev_private *devpriv;
struct jr3_pci_subdev_private *spriv; struct jr3_pci_subdev_private *spriv;
struct comedi_subdevice *s; struct comedi_subdevice *s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment