dpaa_eth: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 22 Mar 2018 19:59:27 +0000 (14:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Mar 2018 17:17:11 +0000 (13:17 -0400)
Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c

index 85306d1b2acf5b3dbfb64a6d5b2dae46818accec..2f933b6b2f4e79b9e1359d8a9b57ba6af4acbfb9 100644 (file)
@@ -344,7 +344,7 @@ static void dpaa_get_ethtool_stats(struct net_device *net_dev,
 
        /* gather congestion related counters */
        cg_num    = 0;
-       cg_status = 0;
+       cg_status = false;
        cg_time   = jiffies_to_msecs(priv->cgr_data.congested_jiffies);
        if (qman_query_cgr_congested(&priv->cgr_data.cgr, &cg_status) == 0) {
                cg_num    = priv->cgr_data.cgr_congested_count;