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.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4061 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2009-06-26 01:31:05 +00:00
parent 530d6494db
commit e0712b8175

View File

@ -184,8 +184,9 @@ struct ath_hal_rf *const *ah_rfs_ptrs[] = { \
(0x7000 <= (__reg) && (__reg) < 0x8000))
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,12)
# define _OS_REG_WRITE(_ah, _reg, _val) do { \
is_reg_le(_reg) ? \
iowrite32((_val), (_ah)->ah_sh + (_reg)) : \
if (is_reg_le(_reg)) \
iowrite32((_val), (_ah)->ah_sh + (_reg)); \
else \
iowrite32be((_val), (_ah)->ah_sh + (_reg)); \
} while (0)
# define _OS_REG_READ(_ah, _reg) \