aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/console_struct.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2020-06-15 09:48:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-24 17:08:31 +0200
commit77bc14f273c2dfecbf87f41fdc00345d99597e13 (patch)
treee343f0d17484052cc52aa66b2ea5c11f9b6d4ff2 /include/linux/console_struct.h
parentvt: introduce enum vc_intensity for intensity (diff)
downloadwireguard-linux-77bc14f273c2dfecbf87f41fdc00345d99597e13.tar.xz
wireguard-linux-77bc14f273c2dfecbf87f41fdc00345d99597e13.zip
vc: switch state to bool
The code currently uses bitfields to store true-false values. Switch all of that to bools. Apart from the cleanup, it saves 20B of code as many shifts, ANDs, and ORs became simple movzb's. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20200615074910.19267-3-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/console_struct.h')
-rw-r--r--include/linux/console_struct.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/console_struct.h b/include/linux/console_struct.h
index e901d98790bf..fa1abffe64be 100644
--- a/include/linux/console_struct.h
+++ b/include/linux/console_struct.h
@@ -54,10 +54,10 @@ struct vc_state {
/* attribute flags */
enum vc_intensity intensity;
- unsigned int italic : 1;
- unsigned int underline : 1;
- unsigned int blink : 1;
- unsigned int reverse : 1;
+ bool italic;
+ bool underline;
+ bool blink;
+ bool reverse;
};
/*