OSDN Git Service

staging: ft1000: ft1000-pcmcia: Deleted unnecessary braces.
authorGulsah Kose <gulsah.1004@gmail.com>
Sun, 22 Feb 2015 01:52:01 +0000 (03:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 23:14:33 +0000 (15:14 -0800)
Brackets were removed from the expression that containing single
line in the phrase "if else". Removed following checkpatch.pl
warnings:
WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c

index 8c5a801..b956223 100644 (file)
@@ -1945,11 +1945,10 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id)
                                                ft1000_read_reg(dev,
                                                                FT1000_REG_MAG_DFSR);
                                }
-                               if (tempword & 0x1f) {
+                               if (tempword & 0x1f)
                                        ft1000_copy_up_pkt(dev);
-                               } else {
+                               else
                                        break;
-                               }
                                cnt++;
                        } while (cnt < MAX_RCV_LOOP);