From: Dan Carpenter Date: Wed, 2 Jun 2010 13:43:15 +0000 (+0000) Subject: e1000e: change logical negate to bitwise X-Git-Tag: v2.6.35-rc2~4^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b21b508ecc9e043839a5337563cfc77f9fcedb9;p=platform%2Fkernel%2Flinux-3.10.git e1000e: change logical negate to bitwise The bitwise negate is intended here. With the logical negate the condition is always false. Signed-off-by: Dan Carpenter Acked-by: Bruce Allan Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 24507f3..57a7e41 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c @@ -2554,7 +2554,7 @@ static void e1000_init_manageability_pt(struct e1000_adapter *adapter) mdef = er32(MDEF(i)); /* Ignore filters with anything other than IPMI ports */ - if (mdef & !(E1000_MDEF_PORT_623 | E1000_MDEF_PORT_664)) + if (mdef & ~(E1000_MDEF_PORT_623 | E1000_MDEF_PORT_664)) continue; /* Enable this decision filter in MANC2H */