ixgbe: fix return values and memcpy parameters to eliminate Smatch warnings
authorJosh Hay <joshua.a.hay@intel.com>
Fri, 4 Jan 2013 03:34:42 +0000 (03:34 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Feb 2013 09:44:04 +0000 (01:44 -0800)
commitd2c47b626ecdd0efa907355fc7eeb34236b3713a
tree4bbf440dbb850bd52fed90566d2272bdeab106cd
parentf752be9c3de4fbb6a9b2c060f3794bd928a0ad7a
ixgbe: fix return values and memcpy parameters to eliminate Smatch warnings

This patch removes the rval variable returns from function and replaces
them with direct returns in ixgbe_dcbnl_getnumtcs. It also changes how
ixgbe_gstrings_test is copied into data with memcpy in ixgbe_get_strings
because "*ixgbe_gstrings_test too small (32 vs 160)".

Signed-off-by: Josh Hay <joshua.a.hay@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c