mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +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);
|
udelay(10);
|
||||||
|
|
||||||
for (i = 15; i >= 0; i--) {
|
for (i = 15; i >= 0; i--) {
|
||||||
u16 reg = reg80 | !!(bangdata & (1 << i));
|
u16 reg = ( reg80 | ( ( bangdata >> i ) & 1 ) );
|
||||||
|
|
||||||
if (i & 1)
|
if (i & 1)
|
||||||
rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg);
|
rtl818x_iowrite16(priv, &priv->map->RFPinsOutput, reg);
|
||||||
|
|||||||
@@ -1011,7 +1011,7 @@ static void fcoe_expired ( struct retry_timer *timer, int over __unused ) {
|
|||||||
/* Increment the timeout counter */
|
/* Increment the timeout counter */
|
||||||
fcoe->timeouts++;
|
fcoe->timeouts++;
|
||||||
|
|
||||||
if ( vlan_can_be_trunk ( fcoe->netdev ) &
|
if ( vlan_can_be_trunk ( fcoe->netdev ) &&
|
||||||
! ( fcoe->flags & FCOE_VLAN_TIMED_OUT ) ) {
|
! ( fcoe->flags & FCOE_VLAN_TIMED_OUT ) ) {
|
||||||
|
|
||||||
/* If we have already found a VLAN, send infrequent
|
/* If we have already found a VLAN, send infrequent
|
||||||
|
|||||||
Reference in New Issue
Block a user