From 2d8623fa10a143fa6fec8ccb0476e8bcf01b9bd0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 11 Feb 2018 16:42:53 +0100 Subject: [PATCH] Cleanup unused variable --- gfx/font_driver.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gfx/font_driver.c b/gfx/font_driver.c index 9133ed2844..3a0e4fb89d 100644 --- a/gfx/font_driver.c +++ b/gfx/font_driver.c @@ -584,8 +584,7 @@ static INLINE unsigned font_get_replacement(const char* src, const char* start) { if ((*src & 0xFC) == 0xD8) /* 0x0600 to 0x06FF */ { - int lookup; - unsigned result; + unsigned result = 0; bool prev_connected = false; bool next_connected = false; unsigned char id = (src[0] << 6) | (src[1] & 0x3F); @@ -595,10 +594,10 @@ static INLINE unsigned font_get_replacement(const char* src, const char* start) if (id < 0x21 || id > 0x4A) return 0; - if(prev2 < start) + if (prev2 < start) { prev2 = NULL; - if(prev1 < start) + if (prev1 < start) prev1 = NULL; }