Commit b062afbe authored by Dan Carpenter's avatar Dan Carpenter Committed by Ben Hutchings

net/mlx4: && vs & typo

commit b2d0fe35 upstream.

Bitwise & was obviously intended here.

Fixes: 745d8ae4 ("net/mlx4: Spoofcheck and zero MAC can't coexist")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarTariq Toukan <tariqt@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent d4f438d2
...@@ -81,7 +81,7 @@ static inline void mlx4_u64_to_mac(u8 *addr, u64 mac) ...@@ -81,7 +81,7 @@ static inline void mlx4_u64_to_mac(u8 *addr, u64 mac)
int i; int i;
for (i = ETH_ALEN; i > 0; i--) { for (i = ETH_ALEN; i > 0; i--) {
addr[i - 1] = mac && 0xFF; addr[i - 1] = mac & 0xFF;
mac >>= 8; mac >>= 8;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment