]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Resolve cppcheck format string warning
authorTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 1 Jun 2017 19:06:05 +0000 (12:06 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 14 Jun 2017 00:36:29 +0000 (17:36 -0700)
commit85b12b8cd4cea9cc61654134dec6f39c641f8bbc
tree89696a0966fb704853997609b95c1778c801d142
parent53ade259e414aa7908b9740b3a2bda3f6b56cb49
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>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c