]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Fix sparse warning about passing __beXX into leXX_to_cpup
authorAlexander Duyck <aduyck@mirantis.com>
Fri, 18 Mar 2016 23:06:53 +0000 (16:06 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 6 Apr 2016 19:16:07 +0000 (12:16 -0700)
commit24df75b755c394940ed7c5ed5fe2c31a10e34ab8
tree180971ffb1d7a36b01c6df58603987fc30335633
parent5eed66b68c384170b3746a366df2c5d5a31e159b
igb: Fix sparse warning about passing __beXX into leXX_to_cpup

We were casting the addr as __beXX and then passing it into le32_to_cpu
because the device expects the MAC address to be in network order even
though the register set is little endian.  Instead of casting it as __beXX
we can just cast it as __leXX in order to maintain consistency since the
region of memory is already in little endian order as far as we are
concerned.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c