summaryrefslogtreecommitdiff
path: root/framebuffer/convert_font.c
diff options
context:
space:
mode:
Diffstat (limited to 'framebuffer/convert_font.c')
-rw-r--r--framebuffer/convert_font.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/framebuffer/convert_font.c b/framebuffer/convert_font.c
index 7c7a16a4f..a71d81bc8 100644
--- a/framebuffer/convert_font.c
+++ b/framebuffer/convert_font.c
@@ -505,16 +505,15 @@ static bool check_glyph_data_valid(int pos, char c)
} else {
return true;
}
- } else if (offset >= 3) {
- if (c != '.' && c != '#' && c != ' ') {
- LOG(LOG_ERROR, " Invalid glyph data: "
- "expecting '.', '#', or ' ', "
- "got '%c' (%i)\n",
- c, c);
- return false;
- } else {
- return true;
- }
+ }
+
+ /* offset must be >=3 */
+ if (c != '.' && c != '#' && c != ' ') {
+ LOG(LOG_ERROR, " Invalid glyph data: "
+ "expecting '.', '#', or ' ', "
+ "got '%c' (%i)\n",
+ c, c);
+ return false;
}
return true;