summaryrefslogtreecommitdiffstats
path: root/src/net/fcoe.c
diff options
context:
space:
mode:
authorMichael Brown2013-04-28 18:30:01 +0200
committerMichael Brown2013-04-28 18:31:23 +0200
commit4678864ce65d5f3f3ae6399e152448d848bd8027 (patch)
treeec4e90e1c5226759e2d5e130648ab9de801d385c /src/net/fcoe.c
parent[build] Fix uses of literal 0 as a NULL pointer (diff)
downloadipxe-4678864ce65d5f3f3ae6399e152448d848bd8027.tar.gz
ipxe-4678864ce65d5f3f3ae6399e152448d848bd8027.tar.xz
ipxe-4678864ce65d5f3f3ae6399e152448d848bd8027.zip
[build] Fix dubious uses of bitwise operators
Detected by sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/fcoe.c')
-rw-r--r--src/net/fcoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/fcoe.c b/src/net/fcoe.c
index d1130425..e9e404ec 100644
--- a/src/net/fcoe.c
+++ b/src/net/fcoe.c
@@ -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