Staging: comedi: fix brace coding style issue in pcmuio.c
authorRavishankar karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Mon, 21 Nov 2011 10:37:06 +0000 (16:07 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 02:51:41 +0000 (18:51 -0800)
This is a patch to the pcmuio.c file that fixes up a brace
warning found by the checkpatch.pl tool.

Signed-off-by: Ravishankar Karkala Mallikarjunayya <ravishankar.km@greenturtles.in>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/pcmuio.c

index b2c2c8971a3215c2bbdb6c8d292755300a75f432..0c5b06dcbe10159c5e25cd390e77280e01a8e7c0 100644 (file)
@@ -951,14 +951,13 @@ pcmuio_inttrig_start_intr(struct comedi_device *dev, struct comedi_subdevice *s,
 
        spin_lock_irqsave(&subpriv->intr.spinlock, flags);
        s->async->inttrig = 0;
-       if (subpriv->intr.active) {
+       if (subpriv->intr.active)
                event = pcmuio_start_intr(dev, s);
-       }
+
        spin_unlock_irqrestore(&subpriv->intr.spinlock, flags);
 
-       if (event) {
+       if (event)
                comedi_event(dev, s);
-       }
 
        return 1;
 }
@@ -1000,9 +999,8 @@ static int pcmuio_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        }
        spin_unlock_irqrestore(&subpriv->intr.spinlock, flags);
 
-       if (event) {
+       if (event)
                comedi_event(dev, s);
-       }
 
        return 0;
 }