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

From: Dust Li <[email-masked]>
Date: Fri, 24 Oct 2025 10:26:32 +0800

On 2025-10-23 17:06:35, Alexandra Winter wrote:
>'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: Dust Li <[email-masked]>

Best regards,
Dust

>---
> 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);
>-- 
>2.48.1