mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue