]> www.infradead.org Git - users/jedix/linux-maple.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)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Thu, 22 Jun 2017 21:28:30 +0000 (14:28 -0700)
commit73f0bc7e5a155c2dfd51c69faa9054b0687c394d
tree4065c30d22e88dadb46b1da4825d577e346bdc87
parent037e92a18cebe9632b99cb02b9a8235b265fa964
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>
(cherry picked from commit 415cd2a645b2573f173cc52419049f9caacf9a47)

Orabug: 26325580

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/igb/igb_main.c