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
(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) \