ixgbe: add braces around else block
authorJacob Keller <[email protected]>
Wed, 9 Apr 2014 06:03:14 +0000 (06:03 +0000)
committerJeff Kirsher <[email protected]>
Fri, 23 May 2014 12:28:21 +0000 (05:28 -0700)
This commit fixes a checkpatch.pl warning for style, by adding braces
around the else block, since the if block requires braces.

Signed-off-by: Jacob Keller <[email protected]>
Tested-by: Phil Schmitt <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c

index 4587bb918a4d66b37209b5755512ecc47a325582..4e5385a2a4658c8c5f0dc9ea4ee279d08693351d 100644 (file)
@@ -3194,9 +3194,9 @@ s32 ixgbe_set_vfta_generic(struct ixgbe_hw *hw, u32 vlan, u32 vind,
                                 * Ignore it. */
                                vfta_changed = false;
                        }
-               }
-               else
+               } else {
                        IXGBE_WRITE_REG(hw, IXGBE_VLVF(vlvf_index), 0);
+               }
        }
 
        if (vfta_changed)