Commit
633a40947321 ("docs: Improve documentation and parsing for efi=")
failed to honor the strcmp()-like return value convention of
cmdline_strcmp().
Reported-by: Roman Shaposhnik <roman@zededa.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
}
else if ( (ss - s) > 5 && !memcmp(s, "attr=", 5) )
{
- if ( cmdline_strcmp(s + 5, "uc") )
+ if ( !cmdline_strcmp(s + 5, "uc") )
efi_map_uc = true;
- else if ( cmdline_strcmp(s + 5, "no") )
+ else if ( !cmdline_strcmp(s + 5, "no") )
efi_map_uc = false;
else
rc = -EINVAL;