Re: [PATCH net-next] net/mlx5: rsc_dump and hv_vhca return NULL on create error

From: Paolo Abeni

Date: Thu Aug 13 2026 - 07:33:44 EST


On 8/13/26 11:26 AM, Simon Horman wrote:
>> @@ -63,9 +63,9 @@ static inline void mlx5_hv_vhca_destroy(struct mlx5_hv_vhca *hv_vhca)
>> {
>> }
>>
>> -static inline int mlx5_hv_vhca_init(struct mlx5_hv_vhca *hv_vhca)
>> +static inline void mlx5_hv_vhca_init(struct mlx5_hv_vhca *hv_vhca)
>> {
>> - return 0;
>> + return;
>> }
>
> The AI-generated review on netdev-ai [1] points out that the
> return; line is unnecessary and inconsistent with surrounding code.

I'll remove the line when I'll apply the patch

/P