Skip to contentSkip to conversation

Staging: comedi: Fix code style in jr3_pci.c

PATCH New naszar 1 participant 1 message Aug 27, 2014 Staging

lore
Share & tools
lore

naszar

author
#0 lore raw

PATCH 1/1 Staging: comedi: Fix code style in jr3_pci.c

From: Vladimir A. Nazarenko <[email protected]>

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;

---
 drivers/staging/comedi/drivers/jr3_pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/jr3_pci.c +1 -1
index 7b20e19..81fab2d 100644
@@ -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;
Signature · 1 line
2.1.0