[PATCH net-next v2 0/3] net: pktgen: fix checkpatch code style errors/warnings

From: Peter Seiderer
Date: Tue Apr 15 2025 - 07:35:39 EST


Fix checkpatch detected code style errors/warnings detected in
the file net/core/pktgen.c (remaining checkpatch checks will be addressed
in a follow up patch set).

Changes v1 -> v2:
- drop already applied patches
- update "net: pktgen: fix code style (ERROR: else should follow close brace
'}')"
Additional add braces around the else statement (as suggested by a follow
up checkpatch run and by Jakub Kicinski from code review).
- update "net: pktgen: fix code style (WARNING: please, no space before tabs)"
Change from spaces to tab for indent (suggested by Jakub Kicinski).
- update "net: pktgen: fix code style (WARNING: Prefer strscpy over strcpy)"
Squash memset/strscpy pattern into single strscpy_pad call (suggested
by Jakub Kicinski).
- drop "net: pktgen: fix code style (WARNING: braces {} are not necessary for
single statement blocks)" (suggestd by Jakub Kicinski)

Peter Seiderer (3):
net: pktgen: fix code style (ERROR: else should follow close brace
'}')
net: pktgen: fix code style (WARNING: please, no space before tabs)
net: pktgen: fix code style (WARNING: Prefer strscpy over strcpy)

net/core/pktgen.c | 24 ++++++++++--------------
1 file changed, 10 insertions(+), 14 deletions(-)

--
2.49.0