Commit 6f2d5cf9 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

net: stmmac: simplify the return dwmac5_rxp_disable()

Simplify the return expression.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f75e5944
......@@ -305,17 +305,13 @@ int dwmac5_safety_feat_dump(struct stmmac_safety_stats *stats,
static int dwmac5_rxp_disable(void __iomem *ioaddr)
{
u32 val;
int ret;
val = readl(ioaddr + MTL_OPERATION_MODE);
val &= ~MTL_FRPE;
writel(val, ioaddr + MTL_OPERATION_MODE);
ret = readl_poll_timeout(ioaddr + MTL_RXP_CONTROL_STATUS, val,
return readl_poll_timeout(ioaddr + MTL_RXP_CONTROL_STATUS, val,
val & RXPI, 1, 10000);
if (ret)
return ret;
return 0;
}
static void dwmac5_rxp_enable(void __iomem *ioaddr)
......
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