fb: cfb: remove font existence check on initializing

The font existence is checked at the time of linking,
The check at initialization is no longer necessary.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
TOKITA Hiroshi 2023-03-04 11:49:56 +09:00 committed by Fabio Baltieri
parent 916b5ce799
commit 330acf53d1

View File

@ -550,9 +550,6 @@ int cfb_framebuffer_init(const struct device *dev)
STRUCT_SECTION_COUNT(cfb_font, &fb->numof_fonts);
LOG_DBG("number of fonts %d", fb->numof_fonts);
if (!fb->numof_fonts) {
return -ENODEV;
}
fb->x_res = cfg.x_resolution;
fb->y_res = cfg.y_resolution;