summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-01-09 11:31:39 +0100
committerLuca Coelho <luciano.coelho@intel.com>2017-04-11 14:54:38 +0300
commit7abf6fde970cc27dda7a8f02439fd0b8a0156459 (patch)
tree1e84c9c42e994133558fd1a178b1821cb10c914c /drivers/net
parent82ea79660c2744c6d273862a455ca634a6c4d2ee (diff)
downloadblackbird-op-linux-7abf6fde970cc27dda7a8f02439fd0b8a0156459.tar.gz
blackbird-op-linux-7abf6fde970cc27dda7a8f02439fd0b8a0156459.zip
iwlwifi: pcie: use iwl_get_dma_hi_addr()
Use iwl_get_dma_hi_addr() instead of 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')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/pcie/tx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
index 66bdd2df910a..9c8ab1a82b72 100644
--- a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c
@@ -380,8 +380,7 @@ static inline void iwl_pcie_tfd_set_tb(struct iwl_trans *trans, void *tfd,
u16 hi_n_len = len << 4;
put_unaligned_le32(addr, &tb->lo);
- if (sizeof(dma_addr_t) > sizeof(u32))
- hi_n_len |= ((addr >> 16) >> 16) & 0xF;
+ hi_n_len |= iwl_get_dma_hi_addr(addr);
tb->hi_n_len = cpu_to_le16(hi_n_len);
OpenPOWER on IntegriCloud