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:
2040ef2
)
net: mvmdio: use GENMASK for masks
author
Antoine Ténart
<
[email protected]
>
Thu, 15 Jun 2017 14:43:18 +0000
(16:43 +0200)
committer
David S. Miller
<
[email protected]
>
Fri, 16 Jun 2017 16:27:11 +0000
(12:27 -0400)
Cosmetic patch to use the GENMASK helper for masks.
Signed-off-by: Antoine Tenart <
[email protected]
>
Reviewed-by: Florian Fainelli <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/marvell/mvmdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/marvell/mvmdio.c
b/drivers/net/ethernet/marvell/mvmdio.c
index 17b518b13ae3ad65a857d507b850af81361f3fcb..583f1c5753c216afd76d1e235d6d91cfc08f24d2 100644
(file)
--- a/
drivers/net/ethernet/marvell/mvmdio.c
+++ b/
drivers/net/ethernet/marvell/mvmdio.c
@@
-138,7
+138,7
@@
static int orion_mdio_read(struct mii_bus *bus, int mii_id,
goto out;
}
- ret = val &
0xFFFF
;
+ ret = val &
GENMASK(15, 0)
;
out:
mutex_unlock(&dev->lock);
return ret;