提交 b2d0fe35 编写于 作者: D Dan Carpenter 提交者: David S. Miller

net/mlx4: && vs & typo

Bitwise & was obviously intended here.

Fixes: 745d8ae4 ("net/mlx4: Spoofcheck and zero MAC can't coexist")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NTariq Toukan <tariqt@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4f3de46f
......@@ -109,7 +109,7 @@ static inline void mlx4_u64_to_mac(u8 *addr, u64 mac)
int i;
for (i = ETH_ALEN; i > 0; i--) {
addr[i - 1] = mac && 0xFF;
addr[i - 1] = mac & 0xFF;
mac >>= 8;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册