Skip to content

Commit

Permalink
net/mlx4: && vs & typo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Mar 1, 2017
1 parent 4f3de46 commit b2d0fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/mlx4/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit b2d0fe3

Please sign in to comment.