net/mlx5: Assign boolean values to a bool variable
Subsystems (3)
PATCH 1/1 net/mlx5: Assign boolean values to a bool variable
Fix the following coccicheck warnings:
./drivers/net/ethernet/mellanox/mlx5/core/fs_core.c:575:2-14: WARNING:
Assignment of 0/1 to bool variable.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Zhong <[email protected]>
--- drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +1 -1
@@ -572,7 +572,7 @@ static void del_hw_fte(struct fs_node *node)mlx5_core_warn (dev,"flow steering can't delete fte in index %d of flow group id %d\n" , fte->index, fg->id); - node->active =0 ; + node->active = false; } }
Signature · 1 line
1.8.3.1