On Fri, 14 Feb 2025 12:43:02 +0100, Thorsten Blum wrote: > While replacing strncpy() with strscpy(), Bart Van Assche pointed out > that the code occurs inside sysfs write callbacks, which already uses > NUL-terminated strings. This allows the string to be passed directly to > sscanf() without requiring a temporary copy. > > Remove the deprecated and unnecessary strncpy() and the corresponding > local variables, and pass the buffer buf directly to sscanf(). > > [...]
Applied to 6.15/scsi-queue, thanks! [1/1] scsi: hpsa: Remove deprecated and unnecessary strncpy() https://git.kernel.org/mkp/scsi/c/d69ddae194ca -- Martin K. Petersen Oracle Linux Engineering