Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dibs: Remove reset of static vars in dibs_init()

'clients' and 'max_client' are static variables and therefore don't need to
be initialized.

Reported-by: Mete Durlu <meted@linux.ibm.com>
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Link: https://patch.msgid.link/20251023150636.3995476-1-wintera@linux.ibm.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Alexandra Winter and committed by
Paolo Abeni
182663bb 51f32255

-3
-3
drivers/dibs/dibs_main.c
··· 254 254 { 255 255 int rc; 256 256 257 - memset(clients, 0, sizeof(clients)); 258 - max_client = 0; 259 - 260 257 dibs_class = class_create("dibs"); 261 258 if (IS_ERR(dibs_class)) 262 259 return PTR_ERR(dibs_class);