Fixed accidentially used operator & by using &&. redundancy
authorFlorian Pose <fp@igh-essen.com>
Wed, 23 Nov 2011 15:11:07 +0100
branchredundancy
changeset 2318 b0fe561ec7df
parent 2317 631cd979023f
child 2319 f51f3a98d760
Fixed accidentially used operator & by using &&.
devices/e1000/e1000_main-2.6.31-ethercat.c
devices/e1000/e1000_main-2.6.33-ethercat.c
--- a/devices/e1000/e1000_main-2.6.31-ethercat.c	Thu Dec 15 14:05:44 2011 +0100
+++ b/devices/e1000/e1000_main-2.6.31-ethercat.c	Wed Nov 23 15:11:07 2011 +0100
@@ -3804,7 +3804,7 @@
 		int i, ec_work_done = 0;
 		for (i = 0; i < E1000_MAX_INTR; i++) {
 			if (unlikely(!adapter->clean_rx(adapter, adapter->rx_ring,
-						&ec_work_done, 100) &
+						&ec_work_done, 100) &&
 					!e1000_clean_tx_irq(adapter, adapter->tx_ring))) {
 				break;
 			}
--- a/devices/e1000/e1000_main-2.6.33-ethercat.c	Thu Dec 15 14:05:44 2011 +0100
+++ b/devices/e1000/e1000_main-2.6.33-ethercat.c	Wed Nov 23 15:11:07 2011 +0100
@@ -3468,7 +3468,7 @@
 		int i, ec_work_done = 0;
 		for (i = 0; i < E1000_MAX_INTR; i++) {
 			if (unlikely(!adapter->clean_rx(adapter, adapter->rx_ring,
-							&ec_work_done, 100) &
+							&ec_work_done, 100) &&
 						!e1000_clean_tx_irq(adapter, adapter->tx_ring))) {
 				break;
 			}