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:
parent
916b5ce799
commit
330acf53d1
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user