]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
util: remove empty default case in argconfig functions
authorCaleb Sander Mateos <csander@purestorage.com>
Tue, 16 Jul 2024 16:21:04 +0000 (10:21 -0600)
committerDaniel Wagner <wagi@monom.org>
Wed, 17 Jul 2024 14:57:45 +0000 (16:57 +0200)
commit2a68afc5f2b4c3f05f484f164e566fe22ee9413e
tree4a06c74a33829e4289faea19337084a00b441397
parent957d9421800542f7ae0069b19fbd683b0e1b73c3
util: remove empty default case in argconfig functions

Both argconfig_parse_type() and argconfig_set_opt_val()
switch on the argument value type and have an empty default case.
This is unnecessary and masks errors from unhandled enum values.
So drop the default cases.

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