mirror of https://gitee.com/openkylin/linux.git
net: freescale: dpaa: simplify the return dpaa_eth_refill_bpools()
Simplify the return expression. Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com> Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d867bc3a26
commit
264386fc19
|
@ -1625,17 +1625,13 @@ static int dpaa_eth_refill_bpools(struct dpaa_priv *priv)
|
||||||
{
|
{
|
||||||
struct dpaa_bp *dpaa_bp;
|
struct dpaa_bp *dpaa_bp;
|
||||||
int *countptr;
|
int *countptr;
|
||||||
int res;
|
|
||||||
|
|
||||||
dpaa_bp = priv->dpaa_bp;
|
dpaa_bp = priv->dpaa_bp;
|
||||||
if (!dpaa_bp)
|
if (!dpaa_bp)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
countptr = this_cpu_ptr(dpaa_bp->percpu_count);
|
countptr = this_cpu_ptr(dpaa_bp->percpu_count);
|
||||||
res = dpaa_eth_refill_bpool(dpaa_bp, countptr);
|
|
||||||
if (res)
|
|
||||||
return res;
|
|
||||||
|
|
||||||
return 0;
|
return dpaa_eth_refill_bpool(dpaa_bp, countptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cleanup function for outgoing frame descriptors that were built on Tx path,
|
/* Cleanup function for outgoing frame descriptors that were built on Tx path,
|
||||||
|
|
Loading…
Reference in New Issue