Skip to content

Commit b2d0fe3

Browse files
Dan Carpenterdavem330
authored andcommitted
net/mlx4: && vs & typo
Bitwise & was obviously intended here. Fixes: 745d8ae ("net/mlx4: Spoofcheck and zero MAC can't coexist") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Tariq Toukan <tariqt@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4f3de46 commit b2d0fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/mlx4/driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static inline void mlx4_u64_to_mac(u8 *addr, u64 mac)
109109
int i;
110110

111111
for (i = ETH_ALEN; i > 0; i--) {
112-
addr[i - 1] = mac && 0xFF;
112+
addr[i - 1] = mac & 0xFF;
113113
mac >>= 8;
114114
}
115115
}

0 commit comments

Comments
 (0)