Commit fd3ebd85 authored by Antoine Ténart's avatar Antoine Ténart Committed by David S. Miller

net: mvmdio: use GENMASK for masks

Cosmetic patch to use the GENMASK helper for masks.
Signed-off-by: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2040ef2f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment