linux/drivers/net/ethernet/intel/e1000
Jesse Brandeburg c40591cc3d intel: remove checker warning
The sparse checker (C=2) found an assignment where we were mixing
types when trying to convert from data read directly from the
device NVM, to an array in CPU order in-memory, which
unfortunately the driver tries to do in-place.

This is easily solved by using the swap operation instead of an
assignment, and is already proven in other Intel drivers to be
functionally correct and the same code, just without a sparse
warning.

The change is the same in all three drivers.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Dave Switzer <david.switzer@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-05-26 09:11:40 -07:00
..
e1000_ethtool.c intel: remove checker warning 2021-05-26 09:11:40 -07:00
e1000_hw.c net: e1000: remove repeated words for e1000_hw.c 2021-05-19 12:23:25 -07:00
e1000_hw.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_main.c net: e1000: remove repeated word "slot" for e1000_main.c 2021-05-19 12:23:25 -07:00
e1000_osdep.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_param.c ethernet/intel: Convert fallthrough code comments 2020-07-01 13:47:43 -07:00
e1000.h net/intel: remove driver versions from Intel drivers 2020-06-25 22:25:13 -07:00
Makefile net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00