From: Andrea Gelmini Date: Fri, 26 Feb 2010 09:15:04 +0000 (+0100) Subject: Staging: comedi: contec_pci_dio.c: Checkpatch cleanup X-Git-Tag: upstream/snapshot3+hdmi~15313^2~1^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=426054ce11ecb416048aa0f92628fa4ba93c3a0e;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Staging: comedi: contec_pci_dio.c: Checkpatch cleanup WARNING: braces {} are not necessary for single statement blocks + if (dev->iobase) { + comedi_pci_disable(devpriv->pci_dev); + } Signed-off-by: Andrea Gelmini Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/contec_pci_dio.c b/drivers/staging/comedi/drivers/contec_pci_dio.c index b16d652..9511814 100644 --- a/drivers/staging/comedi/drivers/contec_pci_dio.c +++ b/drivers/staging/comedi/drivers/contec_pci_dio.c @@ -173,9 +173,8 @@ static int contec_detach(struct comedi_device *dev) printk("comedi%d: contec: remove\n", dev->minor); if (devpriv && devpriv->pci_dev) { - if (dev->iobase) { + if (dev->iobase) comedi_pci_disable(devpriv->pci_dev); - } pci_dev_put(devpriv->pci_dev); }