mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 19:27:28 +07:00
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:
parent
2040ef2f74
commit
fd3ebd8578
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user