mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 19:49:45 +03:00
[build] Fix dubious uses of bitwise operators
Detected by sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -71,7 +71,7 @@ static void rtl8225_write(struct net80211_device *dev, u8 addr, u16 data)
|
||||
udelay(10);
|
||||
|
||||
for (i = 15; i >= 0; i--) {
|
||||
u16 reg = reg80 | !!(bangdata & (1 << i));
|
||||
u16 reg = ( reg80 | ( ( bangdata >> i ) & 1 ) );
|
||||
|
||||
if (i & 1)
|
||||
rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg);
|
||||
|
||||
Reference in New Issue
Block a user