mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[build] Fix dubious uses of bitwise operators
Detected by sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
b9663b8049
commit
4678864ce6
@ -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);
|
||||
|
@ -1011,7 +1011,7 @@ static void fcoe_expired ( struct retry_timer *timer, int over __unused ) {
|
||||
/* Increment the timeout counter */
|
||||
fcoe->timeouts++;
|
||||
|
||||
if ( vlan_can_be_trunk ( fcoe->netdev ) &
|
||||
if ( vlan_can_be_trunk ( fcoe->netdev ) &&
|
||||
! ( fcoe->flags & FCOE_VLAN_TIMED_OUT ) ) {
|
||||
|
||||
/* If we have already found a VLAN, send infrequent
|
||||
|
Loading…
Reference in New Issue
Block a user