提交 fd3ebd85 编写于 作者: A Antoine Ténart 提交者: David S. Miller

net: mvmdio: use GENMASK for masks

Cosmetic patch to use the GENMASK helper for masks.
Signed-off-by: NAntoine Tenart <antoine.tenart@free-electrons.com>
Reviewed-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册