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>
This commit is contained in:
Antoine Ténart 2017-06-15 16:43:18 +02:00 committed by David S. Miller
parent 2040ef2f74
commit fd3ebd8578

View File

@ -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;