forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/ethernet/mellanox/mlx5/core/sriov.c
....@@ -211,8 +211,7 @@
211211 host_total_vfs = MLX5_GET(query_esw_functions_out, out,
212212 host_params_context.host_total_vfs);
213213 kvfree(out);
214
- if (host_total_vfs)
215
- return host_total_vfs;
214
+ return host_total_vfs;
216215 }
217216
218217 done: