Subject: Re: [PATCH net-next 1/2] dibs: Remove reset of static vars in dibs_init()

From: Alexander Lobakin <[email-masked]>
Date: Thu, 23 Oct 2025 17:16:17 +0200

From: Alexandra Winter <[email-masked]>
Date: Thu, 23 Oct 2025 17:06:35 +0200

> 'clients' and 'max_client' are static variables and therefore don't need to
> be initialized.
> 
> Reported-by: Mete Durlu <[email-masked]>
> Signed-off-by: Alexandra Winter <[email-masked]>

Reviewed-by: Alexander Lobakin <[email-masked]>

> ---
>  drivers/dibs/dibs_main.c | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/drivers/dibs/dibs_main.c b/drivers/dibs/dibs_main.c
> index 0374f8350ff7..b015578b4d2e 100644
> --- a/drivers/dibs/dibs_main.c
> +++ b/drivers/dibs/dibs_main.c
> @@ -254,9 +254,6 @@ static int __init dibs_init(void)
>  {
>  	int rc;
>  
> -	memset(clients, 0, sizeof(clients));
> -	max_client = 0;
> -
>  	dibs_class = class_create("dibs");
>  	if (IS_ERR(dibs_class))
>  		return PTR_ERR(dibs_class);

Thanks,
Olek