Changeset 4061

Show
Ignore:
Timestamp:
06/26/09 03:31:05 (3 years ago)
Author:
proski
Message:

Fix compiler warning on some big-endian systems

Don't assume that both iowrite32() and iowrite32be() return values in
the _OS_REG_WRITE definition. _OS_REG_WRITE discards the value anyway.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/ath_hal/ah_osdep.h

    r4029 r4061  
    185185# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12) 
    186186#  define _OS_REG_WRITE(_ah, _reg, _val) do {                   \ 
    187          is_reg_le(_reg) ?                                      \ 
    188           iowrite32((_val), (_ah)->ah_sh + (_reg)) :            \ 
     187         if (is_reg_le(_reg))                                   \ 
     188          iowrite32((_val), (_ah)->ah_sh + (_reg));             \ 
     189         else                                                   \ 
    189190          iowrite32be((_val), (_ah)->ah_sh + (_reg));           \ 
    190191        } while (0)