]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: target: Remove size arguments when calling strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 4 Mar 2025 18:14:00 +0000 (19:14 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Apr 2025 01:58:53 +0000 (21:58 -0400)
commit1f8eb295790001e0f498e62c186130055d3d496f
treed969a71a9aa86847d6ba27bf15da11c814c02f54
parentfc8a5ee50743516700d10a83c598b6adb3c2dbef
scsi: target: Remove size arguments when calling strscpy()

The size parameter of strscpy() is optional because strscpy() uses
sizeof() to determine the length of the destination buffer if it is not
provided as an argument. Remove it to simplify the code.

Remove some unnecessary curly braces.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250304181400.78325-1-thorsten.blum@linux.dev
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c