Skip to contentSkip to conversation

Staging: sbe-2t3e3: logical || vs bitwise |

PATCH New Dan Carpenter 1 participant 1 message Jan 17, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: sbe-2t3e3: logical || vs bitwise |

Bitwise OR was clearly intended here.

drivers/staging/sbe-2t3e3/intr.c +1 -1
index 7ad1a83..1336aab 100644
@@ -188,7 +188,7 @@ void dc_intr_rx(struct channel *sc)
 			}
 
 			if (sc->s.LOS) {
-				error_mask &= ~(SBE_2T3E3_RX_DESC_DRIBBLING_BIT ||
+				error_mask &= ~(SBE_2T3E3_RX_DESC_DRIBBLING_BIT |
 						SBE_2T3E3_RX_DESC_MII_ERROR);
 			}