net/ixgbe/base: remove a compiler warning
authorWei Dai <wei.dai@intel.com>
Thu, 12 Jan 2017 14:53:26 +0000 (22:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:41:42 +0000 (19:41 +0100)
Remove warning for "mac->led_link_act = i" where led_link_act is u8.

Signed-off-by: Wei Dai <wei.dai@intel.com>
drivers/net/ixgbe/base/ixgbe_common.c

index 18bb18c..0dd33b8 100644 (file)
@@ -1150,7 +1150,7 @@ s32 ixgbe_init_led_link_act_generic(struct ixgbe_hw *hw)
 {
        struct ixgbe_mac_info *mac = &hw->mac;
        u32 led_reg, led_mode;
-       u16 i;
+       u8 i;
 
        led_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);