mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
dpaa_eth: use false and true for bool variables
Fix coccicheck warnings: ./dpaa_eth.c:2549:2-22: WARNING: Assignment of 0/1 to bool variable ./dpaa_eth.c:2562:2-22: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Acked-by: Madalin Bucur <madalin.bucur@oss.nxp.com> Link: https://lore.kernel.org/r/1604405100-33255-1-git-send-email-zou_wei@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
f2531d4528
commit
ebcaa207b4
@ -2545,7 +2545,7 @@ static void dpaa_eth_napi_enable(struct dpaa_priv *priv)
|
||||
for_each_online_cpu(i) {
|
||||
percpu_priv = per_cpu_ptr(priv->percpu_priv, i);
|
||||
|
||||
percpu_priv->np.down = 0;
|
||||
percpu_priv->np.down = false;
|
||||
napi_enable(&percpu_priv->np.napi);
|
||||
}
|
||||
}
|
||||
@ -2558,7 +2558,7 @@ static void dpaa_eth_napi_disable(struct dpaa_priv *priv)
|
||||
for_each_online_cpu(i) {
|
||||
percpu_priv = per_cpu_ptr(priv->percpu_priv, i);
|
||||
|
||||
percpu_priv->np.down = 1;
|
||||
percpu_priv->np.down = true;
|
||||
napi_disable(&percpu_priv->np.napi);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user