Skip to content

Commit

Permalink
The "sane-intent" option cannot be SANE_CAP_INACTIVE
Browse files Browse the repository at this point in the history
As "*unset*" is always implicitly supported, the never-executing code
that marks option inactive if set of supported intents is empty, removed.
  • Loading branch information
alexpevzner committed Nov 19, 2024
1 parent 7a88b37 commit 89fb078
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions airscan-devops.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,6 @@ devopt_rebuild_opt_desc (devopt *opt)
desc->cap = SANE_CAP_SOFT_SELECT | SANE_CAP_SOFT_DETECT;
desc->constraint_type = SANE_CONSTRAINT_STRING_LIST;
desc->constraint.string_list = (SANE_String_Const*) opt->sane_scanintents;
if (!scanintents) {
desc->cap |= SANE_CAP_INACTIVE;
}

/* OPT_SCAN_SOURCE */
desc = &opt->desc[OPT_SCAN_SOURCE];
Expand Down

0 comments on commit 89fb078

Please sign in to comment.