kernel/drivers/net/ethernet/mellanox/mlx5/core/sriov.c
.. .. @@ -211,8 +211,7 @@ 211 211 host_total_vfs = MLX5_GET(query_esw_functions_out, out, 212 212 host_params_context.host_total_vfs); 213 213 kvfree(out); 214 - if (host_total_vfs)215 - return host_total_vfs;214 + return host_total_vfs;216 215 } 217 216 218 217 done: