]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
util: remove redundant loop condition in argconfig_parse()
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 16 Jul 2024 19:11:34 +0000 (13:11 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 17 Jul 2024 14:57:45 +0000 (16:57 +0200)
commit8b902ec38726f73669db778e754a9d7739cc9752
tree048fe494bfebcef2c98189ba622acff2155ce407
parent28eee1ae1f3c360d53261a554f887e47e1f93583
util: remove redundant loop condition in argconfig_parse()

Since options_count is computed as the number of options
until the first one with a NULL option field,
s->option and option_index < options_count are equivalent.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
util/argconfig.c