mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
b84ae3dc70
commit
77bc14f273
7 changed files with 33 additions and 29 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue