]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/fstab-generator/fstab-generator.c
tree-wise: drop unnecessary use of proc_cmdline_key_streq() 28727/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Aug 2023 17:44:52 +0000 (02:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Aug 2023 18:16:31 +0000 (03:16 +0900)
commita8d3315ba410de0db154516d945b0731656a41d8
tree601382dedfb235754b93234f9f9a48ab70b646ac
parent91acee9906e973365109b1b1d5e880ced9aeae65
tree-wise: drop unnecessary use of proc_cmdline_key_streq()

If the key does not contain '-' or '_', then it is not necessary to use
proc_cmdline_key_streq(), and streq() is sufficient.

This also adds missing assertions about 'key' argument.
src/fstab-generator/fstab-generator.c
src/gpt-auto-generator/gpt-auto-generator.c
src/hibernate-resume/hibernate-resume-generator.c
src/resolve/resolved-conf.c
src/run-generator/run-generator.c
src/veritysetup/veritysetup-generator.c