]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
util: consolidate call paths to argconfig_parse_type()
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 16 Jul 2024 19:01:36 +0000 (13:01 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 17 Jul 2024 14:57:45 +0000 (16:57 +0200)
commitc8761493bdbbe973456ef8e46bc94f05c4de25dd
tree72a300ab2f4d48f2b31e34864a2b07640dcf7eda
parent1b3ba5de38ef1e24d84071f05d3d535363298521
util: consolidate call paths to argconfig_parse_type()

argconfig_parse_val() already falls back on argconfig_parse_type()
if no option values match.
So always call argconfig_parse_val() from argconfig_parse()
instead of checking whether any option values are defined.

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