vshCmddefCheckInternals: Remove check for "too many options"

This check was needed due to the use "unsigned long long" as bitmap
which was refactored recently.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Peter Krempa 2024-04-18 16:32:44 +02:00
parent bf3e734fac
commit 166fe3c7b5

View File

@ -327,11 +327,6 @@ vshCmddefCheckInternals(vshControl *ctl,
for (i = 0; cmd->opts[i].name; i++) {
const vshCmdOptDef *opt = &cmd->opts[i];
if (i > 63) {
vshError(ctl, "command '%s' has too many options", cmd->name);
return -1; /* too many options */
}
if (missingCompleters && !opt->completer) {
switch (opt->type) {
case VSH_OT_STRING: