]> www.infradead.org Git - nvme.git/commit
module: Remove unnecessary size argument when calling strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 8 Mar 2025 19:46:32 +0000 (20:46 +0100)
committerPetr Pavlu <petr.pavlu@suse.com>
Mon, 10 Mar 2025 10:56:26 +0000 (11:56 +0100)
commit085c5e37427d22381efa6e8a660dd810e8ef36ef
tree9bd59ddbc96136999d448311de343cba2f62f8a4
parent6380bf8ff90213282a7a7f99697964a9c2bd6899
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>
kernel/module/main.c