net/mlx5: Use boolean arithmetic to evaluate roce_lag
[linux-2.6-microblaze.git] / drivers / net / ethernet / mellanox / mlx5 / core / lag.c
index c9c0016..e52e214 100644 (file)
@@ -289,8 +289,9 @@ static void mlx5_do_bond(struct mlx5_lag *ldev)
                           !mlx5_sriov_is_enabled(dev1);
 
 #ifdef CONFIG_MLX5_ESWITCH
-               roce_lag &= dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE &&
-                           dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE;
+               roce_lag = roce_lag &&
+                          dev0->priv.eswitch->mode == MLX5_ESWITCH_NONE &&
+                          dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE;
 #endif
 
                if (roce_lag)