We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe659a commit 5bebe2eCopy full SHA for 5bebe2e
arch/x86/kernel/bootflag.c
@@ -20,7 +20,7 @@
20
21
int sbf_port __initdata = -1; /* set via acpi_boot_init() */
22
23
-static int __init parity(u8 v)
+static bool __init parity(u8 v)
24
{
25
int x = 0;
26
int i;
@@ -30,7 +30,7 @@ static int __init parity(u8 v)
30
v >>= 1;
31
}
32
33
- return x;
+ return !!x;
34
35
36
static void __init sbf_write(u8 v)
@@ -66,14 +66,14 @@ static u8 __init sbf_read(void)
66
return v;
67
68
69
-static int __init sbf_value_valid(u8 v)
+static bool __init sbf_value_valid(u8 v)
70
71
if (v & SBF_RESERVED) /* Reserved bits */
72
- return 0;
+ return false;
73
if (!parity(v))
74
75
76
- return 1;
+ return true;
77
78
79
static int __init sbf_init(void)
0 commit comments