module: Remove unnecessary size argument when calling strscpy()

The size parameter is optional and strscpy() automatically determines
the length of the destination buffer using sizeof() if the argument is
omitted. This makes the explicit sizeof() unnecessary. Remove it to
shorten and simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250308194631.191670-2-thorsten.blum@linux.dev
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>

authored by Thorsten Blum and committed by Petr Pavlu 085c5e37 6380bf8f

+2 -2
+2 -2
kernel/module/main.c
··· 787 787 async_synchronize_full(); 788 788 789 789 /* Store the name and taints of the last unloaded module for diagnostic purposes */ 790 - strscpy(last_unloaded_module.name, mod->name, sizeof(last_unloaded_module.name)); 791 - strscpy(last_unloaded_module.taints, module_flags(mod, buf, false), sizeof(last_unloaded_module.taints)); 790 + strscpy(last_unloaded_module.name, mod->name); 791 + strscpy(last_unloaded_module.taints, module_flags(mod, buf, false)); 792 792 793 793 free_module(mod); 794 794 /* someone could wait for the module in add_unformed_module() */