From: Antoine Ténart Date: Thu, 15 Jun 2017 14:43:18 +0000 (+0200) Subject: net: mvmdio: use GENMASK for masks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fd3ebd857895884c2567a7f4dfbf50ba49bd2eab;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: mvmdio: use GENMASK for masks Cosmetic patch to use the GENMASK helper for masks. Signed-off-by: Antoine Tenart Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- 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;