]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging/ft1000: fix the no brace needed warning in ft1000_read_fifo_len
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 7 Jul 2012 12:05:16 +0000 (17:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 19:26:43 +0000 (12:26 -0700)
as the if else statements enclose only one line, so braces around them are not
needed.

The following warning is fixed

drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c:100: WARNING: braces {} are not necessary for any arm of this statement

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 0bd080c4f1f706ace28cd8a3e681999faed92517..4a8d6426641e8846ed8c09af7725085494f7a48b 100644 (file)
@@ -97,11 +97,10 @@ static inline u16 ft1000_read_fifo_len(struct net_device *dev)
 {
        struct ft1000_info *info = netdev_priv(dev);
 
-       if (info->AsicID == ELECTRABUZZ_ID) {
+       if (info->AsicID == ELECTRABUZZ_ID)
                return (ft1000_read_reg(dev, FT1000_REG_UFIFO_STAT) - 16);
-       } else {
+       else
                return (ft1000_read_reg(dev, FT1000_REG_MAG_UFSR) - 16);
-       }
 }
 
 //---------------------------------------------------------------------------