diff options
author | Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> | 2021-01-20 10:01:51 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-01-22 04:10:12 +0300 |
commit | fdb6b338d2e5f12dda2d80880ae4800547388bb4 (patch) | |
tree | de3582f70c96e37dcaf665260979fbc45ea3af08 /drivers/net/ethernet/chelsio/cxgb4 | |
parent | 4026d80142b644c107586f279fa319ff5c6e0d18 (diff) | |
download | linux-fdb6b338d2e5f12dda2d80880ae4800547388bb4.tar.xz |
cxgb4: Assign boolean values to a bool variable
Fix the following coccicheck warnings:
./drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c:5142:2-33:
WARNING: Assignment of 0/1 to bool variable.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Link: https://lore.kernel.org/r/1611126111-22079-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c index 15542661e3d2..9f1965c80fb1 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c @@ -5137,7 +5137,7 @@ static int adap_init0(struct adapter *adap, int vpd_skip) /* See if FW supports FW_FILTER2 work request */ if (is_t4(adap->params.chip)) { - adap->params.filter2_wr_support = 0; + adap->params.filter2_wr_support = false; } else { params[0] = FW_PARAM_DEV(FILTER2_WR); ret = t4_query_params(adap, adap->mbox, adap->pf, 0, |