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:
parent
330acf53d1
commit
4681e0e1a4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue