staging:gdm72xx: Fix unnecessary brace errors
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 5 Mar 2014 16:41:29 +0000 (22:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 23:41:30 +0000 (15:41 -0800)
This patch fixes the following warning for gdm_wimax.c
WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_wimax.c

index dd854975db7d6f43a8fd1fc19f6d9db79e06c41e..f71d2d2392370d4a5a3b6e4fca3054593ecd587f 100644 (file)
@@ -169,11 +169,10 @@ static void dump_eth_packet(const char *title, u8 *data, int len)
                get_port_name(port));
 
        if (!(data[0] == 0xff && data[1] == 0xff)) {
-               if (protocol == ETH_P_IP) {
+               if (protocol == ETH_P_IP)
                        printk(KERN_DEBUG "     src=%pI4\n", &ih->saddr);
-               } else if (protocol == ETH_P_IPV6) {
+               else if (protocol == ETH_P_IPV6)
                        printk(KERN_DEBUG "     src=%pI6\n", &ih->saddr);
-               }
        }
 
        #if (DUMP_PACKET & DUMP_SDU_ALL)