1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

Kernel: Simplify some if statements

This commit is contained in:
Hendiadyoin1 2021-12-29 01:03:09 +01:00 committed by Andreas Kling
parent 04d75f4ff9
commit 23037d619a
Notes: sideshowbarker 2024-07-17 21:54:45 +09:00
3 changed files with 3 additions and 8 deletions

View file

@ -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)