diff options
author | Antoine Ténart | 2017-06-15 16:43:18 +0200 |
---|---|---|
committer | David S. Miller | 2017-06-16 12:27:11 -0400 |
commit | fd3ebd857895884c2567a7f4dfbf50ba49bd2eab (patch) | |
tree | 291889e1eff7d30ed0f993d548c16d3975880dbd | |
parent | 2040ef2f74a42a56da424aea28249a7f188aa637 (diff) |
net: mvmdio: use GENMASK for masks
Cosmetic patch to use the GENMASK helper for masks.
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/marvell/mvmdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvmdio.c b/drivers/net/ethernet/marvell/mvmdio.c index 17b518b13ae3..583f1c5753c2 100644 --- 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; |