Commit ebcaa207 authored by Zou Wei's avatar Zou Wei Committed by Jakub Kicinski

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZou Wei <zou_wei@huawei.com>
Acked-by: default avatarMadalin Bucur <madalin.bucur@oss.nxp.com>
Link: https://lore.kernel.org/r/1604405100-33255-1-git-send-email-zou_wei@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f2531d45
...@@ -2545,7 +2545,7 @@ static void dpaa_eth_napi_enable(struct dpaa_priv *priv) ...@@ -2545,7 +2545,7 @@ static void dpaa_eth_napi_enable(struct dpaa_priv *priv)
for_each_online_cpu(i) { for_each_online_cpu(i) {
percpu_priv = per_cpu_ptr(priv->percpu_priv, 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); napi_enable(&percpu_priv->np.napi);
} }
} }
...@@ -2558,7 +2558,7 @@ static void dpaa_eth_napi_disable(struct dpaa_priv *priv) ...@@ -2558,7 +2558,7 @@ static void dpaa_eth_napi_disable(struct dpaa_priv *priv)
for_each_online_cpu(i) { for_each_online_cpu(i) {
percpu_priv = per_cpu_ptr(priv->percpu_priv, 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); napi_disable(&percpu_priv->np.napi);
} }
} }
......
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