fb: cfb: Remove sanity check for unused value

Remove needless sanity check

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
TOKITA Hiroshi 2023-05-26 14:48:26 +09:00 committed by Fabio Baltieri
parent 330acf53d1
commit 4681e0e1a4

View file

@ -426,12 +426,11 @@ int cfb_framebuffer_clear(const struct device *dev, bool clear_display)
return 0;
}
int cfb_framebuffer_invert(const struct device *dev)
{
struct char_framebuffer *fb = &char_fb;
if (!fb || !fb->buf) {
if (!fb) {
return -ENODEV;
}