summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Nguyen <anthony.l.nguyen@intel.com>2017-06-01 22:06:05 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-06-14 03:36:29 +0300
commit4ebdf8af3017ce242f37be2ae5e5f655dc9846ef (patch)
tree89696a0966fb704853997609b95c1778c801d142
parentd28b194955a9b6e6ccf4383f1baba78bb5a528db (diff)
downloadlinux-4ebdf8af3017ce242f37be2ae5e5f655dc9846ef.tar.xz
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>
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c2
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 2890e926b498..72c565712a5f 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: