summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/aeroflex
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2021-03-26 01:38:25 +0100
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-05-26 18:11:40 +0200
commitc40591cc3d48194faa80bda652d86a1ed8e221be (patch)
tree5a301380a403a1b664fd2a833ac7694a1b938c55 /drivers/net/ethernet/aeroflex
parente100: handle eeprom as little endian (diff)
downloadlinux-c40591cc3d48194faa80bda652d86a1ed8e221be.tar.xz
linux-c40591cc3d48194faa80bda652d86a1ed8e221be.zip
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>
Diffstat (limited to 'drivers/net/ethernet/aeroflex')
0 files changed, 0 insertions, 0 deletions