iwlwifi: mvm: byte-swap constant instead of variable
authorJohannes Berg <johannes.berg@intel.com>
Wed, 7 Jun 2017 07:31:13 +0000 (09:31 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 1 Aug 2017 09:41:44 +0000 (12:41 +0300)
commitc67a3d05024fad00ac160e868967a1e711073993
tree94f15a21cbcee5614fcb8660a45bdf80a0b81422
parentc8c017a6ff933ff88f3abf7d924e717284e218af
iwlwifi: mvm: byte-swap constant instead of variable

Convention has it to byte-swap the constant instead of the variable
when doing bit checks. This also generates better code when the swap
is actually needed, since the constant can be swapped at compile-time.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c