staging/ft1000: fix the no brace needed warning in ft1000_interrupt
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 7 Jul 2012 12:05:12 +0000 (17:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 19:26:42 +0000 (12:26 -0700)
as the if statement encloses only one line braces around it are not
needed.

The following warn fixed,
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c

index c4a8a0a..0bd080c 100644 (file)
@@ -1998,9 +1998,8 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id)
 
     // Make sure we process all interrupt before leaving the ISR due to the edge trigger interrupt type
     while (inttype) {
-       if (inttype & ISR_DOORBELL_PEND) {
-               ft1000_parse_dpram_msg(dev);
-       }
+               if (inttype & ISR_DOORBELL_PEND)
+                       ft1000_parse_dpram_msg(dev);
 
        if (inttype & ISR_RCV) {
                DEBUG(1, "Data in FIFO\n");