From 1e231510436e2da8b1a0d5554644d1115fc33d27 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 6 Dec 2014 14:59:40 +0000 Subject: [PATCH] putdigit: microoptimisations The compiler can't assume much about the variables after the call to put the character so do the operations the other way around --- Kernel/devio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/devio.c b/Kernel/devio.c index bbcc5bc2..cda40a6b 100644 --- a/Kernel/devio.c +++ b/Kernel/devio.c @@ -447,8 +447,8 @@ static void putdigit0(unsigned char c) static void putdigit(unsigned char c, unsigned char *flag) { if (c || *flag) { - putdigit0(c); *flag |= c; + putdigit0(c); } } -- 2.34.1