diff --git a/include/linux/mlx4/driver.h b/include/linux/mlx4/driver.h
index e965e5090d9622d57f1b16c1b7f9fe2d18532473..a858bcb6220b5d090c2ca828527b38e6d7c0380e 100644
--- a/include/linux/mlx4/driver.h
+++ b/include/linux/mlx4/driver.h
@@ -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;
 	}
 }