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>
Bu işleme şunda yer alıyor:
Johannes Berg
2017-01-09 11:28:47 +01:00
işlemeyi yapan: Luca Coelho
ebeveyn 1c17627bf5
işleme bd31dd9d14
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme

Dosyayı Görüntüle

@@ -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