public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel•org>
To: Ethan Nelson-Moore <enelsonmoore@gmail•com>
Cc: netdev@vger•kernel.org, linux-usb@vger•kernel.org,
	"Andy Shevchenko" <andriy.shevchenko@linux•intel.com>,
	"Andrew Lunn" <andrew+netdev@lunn•ch>,
	"David S. Miller" <davem@davemloft•net>,
	"Eric Dumazet" <edumazet@google•com>,
	"Paolo Abeni" <pabeni@redhat•com>,
	"Thangaraj Samynathan" <Thangaraj.S@microchip•com>,
	"Rengarajan Sundararajan" <Rengarajan.S@microchip•com>,
	UNGLinuxDriver@microchip•com,
	"Petko Manolov" <petkan@nucleusys•com>,
	"Oliver Neukum" <oneukum@suse•com>,
	"Nikita Zhandarovich" <n.zhandarovich@fintech•ru>,
	"Krzysztof Hałasa" <khalasa@piap•pl>,
	"Deepanshu Kartikey" <kartikey406@gmail•com>,
	"Thomas Gleixner" <tglx@kernel•org>,
	"Ingo Molnar" <mingo@kernel•org>,
	"Foster Snowhill" <forst@pen•gy>,
	"Gustavo A. R. Silva" <gustavoars@kernel•org>,
	"Kees Cook" <kees@kernel•org>,
	"Eric Biggers" <ebiggers@google•com>
Subject: Re: [PATCH net-next] net: usb: switch to two-argument strscpy
Date: Tue, 27 Jan 2026 17:52:25 -0800	[thread overview]
Message-ID: <20260127175225.3982f93e@kernel.org> (raw)
In-Reply-To: <20260126035052.31216-1-enelsonmoore@gmail.com>

On Sun, 25 Jan 2026 19:50:15 -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.

Let's not waste our time replacing all 3-arg strscpy()s with 2-arg right
after we wasted our time replacing strxcpy() with strscpy(). Who cares.
-- 
pw-bot: reject

      parent reply	other threads:[~2026-01-28  1:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-26  3:50 [PATCH net-next] net: usb: switch to two-argument strscpy Ethan Nelson-Moore
2026-01-26 10:07 ` Andy Shevchenko
2026-01-27  7:27   ` Andy Shevchenko
2026-01-28  1:52 ` Jakub Kicinski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260127175225.3982f93e@kernel.org \
    --to=kuba@kernel$(echo .)org \
    --cc=Rengarajan.S@microchip$(echo .)com \
    --cc=Thangaraj.S@microchip$(echo .)com \
    --cc=UNGLinuxDriver@microchip$(echo .)com \
    --cc=andrew+netdev@lunn$(echo .)ch \
    --cc=andriy.shevchenko@linux$(echo .)intel.com \
    --cc=davem@davemloft$(echo .)net \
    --cc=ebiggers@google$(echo .)com \
    --cc=edumazet@google$(echo .)com \
    --cc=enelsonmoore@gmail$(echo .)com \
    --cc=forst@pen$(echo .)gy \
    --cc=gustavoars@kernel$(echo .)org \
    --cc=kartikey406@gmail$(echo .)com \
    --cc=kees@kernel$(echo .)org \
    --cc=khalasa@piap$(echo .)pl \
    --cc=linux-usb@vger$(echo .)kernel.org \
    --cc=mingo@kernel$(echo .)org \
    --cc=n.zhandarovich@fintech$(echo .)ru \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=oneukum@suse$(echo .)com \
    --cc=pabeni@redhat$(echo .)com \
    --cc=petkan@nucleusys$(echo .)com \
    --cc=tglx@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox