projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f3de46
)
net/mlx4: && vs & typo
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 28 Feb 2017 12:02:15 +0000
(15:02 +0300)
committer
David S. Miller
<davem@davemloft.net>
Wed, 1 Mar 2017 17:50:58 +0000
(09:50 -0800)
Bitwise & was obviously intended here.
Fixes: 745d8ae4622c ("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>
include/linux/mlx4/driver.h
patch
|
blob
|
history
diff --git
a/include/linux/mlx4/driver.h
b/include/linux/mlx4/driver.h
index e965e5090d9622d57f1b16c1b7f9fe2d18532473..a858bcb6220b5d090c2ca828527b38e6d7c0380e 100644
(file)
--- 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;
}
}