diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-01-09 11:28:47 +0100 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2017-04-11 14:54:34 +0300 |
commit | bd31dd9d147aad423a9ac371b86685f87b4e1420 (patch) | |
tree | fc9b719aba7ff39386854566bf846304a30dd762 /drivers/net/wireless/intel/iwlwifi/iwl-fh.h | |
parent | 1c17627bf5c460f94451ac5acab3ee96d3b7e1cd (diff) | |
download | blackbird-obmc-linux-bd31dd9d147aad423a9ac371b86685f87b4e1420.tar.gz blackbird-obmc-linux-bd31dd9d147aad423a9ac371b86685f87b4e1420.zip |
iwlwifi: use upper_32_bits/lower_32_bits where appropriate
That's a bit nicer than open-coding it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-fh.h')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/iwl-fh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-fh.h b/drivers/net/wireless/intel/iwlwifi/iwl-fh.h index 33ef5372d195..361fc25e8618 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-fh.h +++ b/drivers/net/wireless/intel/iwlwifi/iwl-fh.h @@ -647,7 +647,7 @@ struct iwl_rb_status { static inline u8 iwl_get_dma_hi_addr(dma_addr_t addr) { - return (sizeof(addr) > sizeof(u32) ? (addr >> 16) >> 16 : 0) & 0xF; + return (sizeof(addr) > sizeof(u32) ? upper_32_bits(addr) : 0) & 0xF; } /** * struct iwl_tfd_tb transmit buffer descriptor within transmit frame descriptor |