]> git.ipfire.org Git - thirdparty/linux.git/commit
netconsole: improve code style in parser function
authorBreno Leitao <leitao@debian.org>
Fri, 13 Jun 2025 11:31:35 +0000 (04:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 16 Jun 2025 22:18:34 +0000 (15:18 -0700)
commitd79206451f4f99a03907ab9390361ab83b607a6a
treee16dc1fce9a4568a07649a43f7d66ba131d79fea
parentabebef96aab12da245e2a4fc4c3e6715a6239156
netconsole: improve code style in parser function

Split assignment from conditional checks and use preferred null pointer
check style (!delim instead of == NULL) in netconsole_parser_cmdline().
This improves code readability and follows kernel coding style
conventions.

Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250613-rework-v3-6-0752bf2e6912@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/netconsole.c