Fix a logic bug when "mask" contains a ?: operator.
Newer versions of clang warn that '&' evaluates before '?:'. Reviewed by: markj MFC after: 3 days Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D22573
This commit is contained in:
parent
5c3771d272
commit
9005a5a0f4
@ -129,7 +129,7 @@ struct bwn_mac;
|
||||
mac->mac_phy.phy_maskset(mac, offset, mask, 0); \
|
||||
} else \
|
||||
BWN_PHY_WRITE(mac, offset, \
|
||||
BWN_PHY_READ(mac, offset) & mask); \
|
||||
BWN_PHY_READ(mac, offset) & (mask)); \
|
||||
} while (0)
|
||||
#define BWN_PHY_COPY(mac, dst, src) do { \
|
||||
KASSERT(mac->mac_status < BWN_MAC_STATUS_INITED || \
|
||||
|
Loading…
Reference in New Issue
Block a user