summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Dai <wei.dai@intel.com>2017-01-12 22:53:26 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2017-01-17 19:41:42 +0100
commitfff3eeb0a6fe644fa2f681bde00edc4eac9ac8a4 (patch)
tree2a9e7175c3e79dcacb757c6fb34aca0c3b16c57d
parent8bead349c63fc89578b37e12e786390dcf7cbe37 (diff)
downloaddpdk-fff3eeb0a6fe644fa2f681bde00edc4eac9ac8a4.zip
dpdk-fff3eeb0a6fe644fa2f681bde00edc4eac9ac8a4.tar.gz
dpdk-fff3eeb0a6fe644fa2f681bde00edc4eac9ac8a4.tar.xz
net/ixgbe/base: remove a compiler warning
Remove warning for "mac->led_link_act = i" where led_link_act is u8. Signed-off-by: Wei Dai <wei.dai@intel.com>
-rw-r--r--drivers/net/ixgbe/base/ixgbe_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c
index 18bb18c..0dd33b8 100644
--- a/drivers/net/ixgbe/base/ixgbe_common.c
+++ b/drivers/net/ixgbe/base/ixgbe_common.c
@@ -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);