efivars: do binary and before converting to bool

I'm pretty sure that this is what was meant here.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-03-09 16:45:27 -04:00
parent a8436474fa
commit 0aa3b7830f
+1 -1
View File
@@ -339,7 +339,7 @@ int efi_get_boot_option(
p = NULL;
}
if (active)
*active = !!header->attr & LOAD_OPTION_ACTIVE;
*active = !!(header->attr & LOAD_OPTION_ACTIVE);
return 0;
}