Skip to content

Commit

Permalink
iwlwifi: pcie: use iwl_get_dma_hi_addr()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg authored and Luca Coelho committed Apr 11, 2017
1 parent 82ea796 commit 7abf6fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/intel/iwlwifi/pcie/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7abf6fd

Please sign in to comment.