From 4b386dc15c86c2596114dcab8bcd707f48eb95bd Mon Sep 17 00:00:00 2001 From: Ivaylo Ivanov Date: Wed, 27 May 2026 16:08:29 +0000 Subject: [PATCH] lib: simplefb: drop redundant variable in scale calculation --- lib/simplefb/simplefb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/simplefb/simplefb.c b/lib/simplefb/simplefb.c index c02323f..fd2c153 100644 --- a/lib/simplefb/simplefb.c +++ b/lib/simplefb/simplefb.c @@ -75,10 +75,9 @@ int get_font_scale_factor() x = y; y = (x + n / x) / 2; } - int diag = x; /* determine scale factor from pseudo-diagonal */ - int scale = diag / 750; + int scale = x / 750; /* clamp the result */ if (scale < 1)