projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d28b194
)
ixgbe: Resolve cppcheck format string warning
author
Tony Nguyen
<
[email protected]
>
Thu, 1 Jun 2017 19:06:05 +0000
(12:06 -0700)
committer
Jeff Kirsher
<
[email protected]
>
Wed, 14 Jun 2017 00:36:29 +0000
(17:36 -0700)
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 <
[email protected]
>
Tested-by: Andrew Bowers <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
b/drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
index 2890e926b49830eeefba4411f5f6371e612fe0fe..72c565712a5f83106fe92ee7aa6e2f674e89efa2 100644
(file)
--- 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: