Detected by sparse.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
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);
/* 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