From: Johannes Berg Date: Mon, 9 Jan 2017 10:31:39 +0000 (+0100) Subject: iwlwifi: pcie: use iwl_get_dma_hi_addr() X-Git-Tag: v4.14-rc1~1025^2~119^2~50^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7abf6fde970cc27dda7a8f02439fd0b8a0156459;p=platform%2Fkernel%2Flinux-rpi.git iwlwifi: pcie: use iwl_get_dma_hi_addr() Use iwl_get_dma_hi_addr() instead of open-coding it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/tx.c b/drivers/net/wireless/intel/iwlwifi/pcie/tx.c index 66bdd2d..9c8ab1a 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);