[PATCH v1 0/7] platform/x86: Move to 2-argument strscpy()

Andy Shevchenko posted 7 patches 1 year, 8 months ago
drivers/platform/x86/asus-tf103c-dock.c       | 10 +++++-----
.../x86/hp/hp-bioscfg/enum-attributes.c       | 18 +++++-------------
.../x86/hp/hp-bioscfg/int-attributes.c        |  7 ++-----
.../x86/hp/hp-bioscfg/order-list-attributes.c | 18 +++++-------------
.../x86/hp/hp-bioscfg/passwdobj-attributes.c  | 19 +++++--------------
.../x86/hp/hp-bioscfg/spmobj-attributes.c     |  3 +--
.../x86/hp/hp-bioscfg/string-attributes.c     | 12 ++++--------
drivers/platform/x86/intel/chtwc_int33fe.c    |  6 +++---
.../platform/x86/serial-multi-instantiate.c   |  4 ++--
drivers/platform/x86/think-lmi.c              |  4 ++--
drivers/platform/x86/thinkpad_acpi.c          |  6 ++----
drivers/platform/x86/touchscreen_dmi.c        |  2 +-
12 files changed, 37 insertions(+), 72 deletions(-)
[PATCH v1 0/7] platform/x86: Move to 2-argument strscpy()
Posted by Andy Shevchenko 1 year, 8 months ago
Move to 2-argument strscpy() to make code shorter and have an additional check.
No functional change intended.

Some cases are let untouched where it looks better with the 3rd argument.

Andy Shevchenko (7):
  platform/x86: asus-tf103c-dock: Use 2-argument strscpy()
  platform/x86: hp: hp-bioscfg: Use 2-argument strscpy()
  platform/x86: intel: chtwc_int33fe: Use 2-argument strscpy()
  platform/x86: serial-multi-instantiate: Use 2-argument strscpy()
  platform/x86: think-lmi: Use 2-argument strscpy()
  platform/x86: thinkpad_acpi: Use 2-argument strscpy()
  platform/x86: touchscreen_dmi: Use 2-argument strscpy()

 drivers/platform/x86/asus-tf103c-dock.c       | 10 +++++-----
 .../x86/hp/hp-bioscfg/enum-attributes.c       | 18 +++++-------------
 .../x86/hp/hp-bioscfg/int-attributes.c        |  7 ++-----
 .../x86/hp/hp-bioscfg/order-list-attributes.c | 18 +++++-------------
 .../x86/hp/hp-bioscfg/passwdobj-attributes.c  | 19 +++++--------------
 .../x86/hp/hp-bioscfg/spmobj-attributes.c     |  3 +--
 .../x86/hp/hp-bioscfg/string-attributes.c     | 12 ++++--------
 drivers/platform/x86/intel/chtwc_int33fe.c    |  6 +++---
 .../platform/x86/serial-multi-instantiate.c   |  4 ++--
 drivers/platform/x86/think-lmi.c              |  4 ++--
 drivers/platform/x86/thinkpad_acpi.c          |  6 ++----
 drivers/platform/x86/touchscreen_dmi.c        |  2 +-
 12 files changed, 37 insertions(+), 72 deletions(-)

-- 
2.45.1
Re: [PATCH v1 0/7] platform/x86: Move to 2-argument strscpy()
Posted by Ilpo Järvinen 1 year, 8 months ago
On Sun, 2 Jun 2024, Andy Shevchenko wrote:

> Move to 2-argument strscpy() to make code shorter and have an additional check.
> No functional change intended.
> 
> Some cases are let untouched where it looks better with the 3rd argument.
> 
> Andy Shevchenko (7):
>   platform/x86: asus-tf103c-dock: Use 2-argument strscpy()
>   platform/x86: hp: hp-bioscfg: Use 2-argument strscpy()
>   platform/x86: intel: chtwc_int33fe: Use 2-argument strscpy()
>   platform/x86: serial-multi-instantiate: Use 2-argument strscpy()
>   platform/x86: think-lmi: Use 2-argument strscpy()
>   platform/x86: thinkpad_acpi: Use 2-argument strscpy()
>   platform/x86: touchscreen_dmi: Use 2-argument strscpy()

Patches 1-6 applied to review-ilpo branch.

-- 
 i.