diff options
author | Tony Nguyen <anthony.l.nguyen@intel.com> | 2017-06-01 12:06:05 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-06-13 17:36:29 -0700 |
commit | 4ebdf8af3017ce242f37be2ae5e5f655dc9846ef (patch) | |
tree | 89696a0966fb704853997609b95c1778c801d142 /drivers/net/ethernet/intel | |
parent | d28b194955a9b6e6ccf4383f1baba78bb5a528db (diff) | |
download | op-kernel-dev-4ebdf8af3017ce242f37be2ae5e5f655dc9846ef.zip op-kernel-dev-4ebdf8af3017ce242f37be2ae5e5f655dc9846ef.tar.gz |
ixgbe: Resolve cppcheck format string warning
cppcheck warns that the format string is incorrect in the function
ixgbe_get_strings(). Since the value cannot be negative, change the
variable to unsigned which matches the format specifier.
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel')
-rw-r--r-- | drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c index 2890e92..72c5657 100644 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c @@ -1277,7 +1277,7 @@ static void ixgbe_get_strings(struct net_device *netdev, u32 stringset, u8 *data) { char *p = (char *)data; - int i; + unsigned int i; switch (stringset) { case ETH_SS_TEST: |