net/mlx4: Assign boolean values to a bool variable
authorKaixu Xia <kaixuxia@tencent.com>
Sat, 7 Nov 2020 06:53:58 +0000 (14:53 +0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Nov 2020 01:37:53 +0000 (17:37 -0800)
commit785d21b82600378882a3b2edf72813ebc441bb70
tree68bf4738be7f9ce389e46b0d19b28f11b5f90ee4
parent6e822c2c2919a6c2031198ea9a642b75218f24bb
net/mlx4: Assign boolean values to a bool variable

Fix the following coccinelle warnings:

./drivers/net/ethernet/mellanox/mlx4/en_rx.c:687:1-17: WARNING: Assignment of 0/1 to bool variable

Reported-by: Tosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/1604732038-6057-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/en_rx.c