Thread (4 messages) 4 messages, 3 authors, 2026-01-28

Re: [PATCH net-next] net: usb: switch to two-argument strscpy

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2026-01-26 10:07:58
Also in: linux-usb

On Sun, Jan 25, 2026 at 07:50:15PM -0800, Ethan Nelson-Moore wrote:
All instances of strscpy in the USB network drivers use the size of the
destination. If given only two arguments, strscpy will automatically
use the size of the destination. Make the code more concise by
switching to the two-argument form of strscpy.

Also add a blank line after a variable declaration in catc.c to adhere
to kernel code style, since the surrounding code is being touched.
It should go after your patch that drops some of the strscpy():s.
Hence make a v3 as a series of two patches.

Code wise this LGTM, thanks for doing this.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help