mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
Kernel: Simplify some if statements
This commit is contained in:
parent
04d75f4ff9
commit
23037d619a
3 changed files with 3 additions and 8 deletions
|
@ -61,10 +61,7 @@ static void serial_putch(char ch)
|
|||
|
||||
IO::out8(0x3F8, ch);
|
||||
|
||||
if (ch == '\r')
|
||||
was_cr = true;
|
||||
else
|
||||
was_cr = false;
|
||||
was_cr = ch == '\r';
|
||||
}
|
||||
|
||||
static void critical_console_out(char ch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue