fb: cfb: Remove unused value
The `desc` value in cfb_framebuffer_clear is not used. Removed it. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
parent
4681e0e1a4
commit
90ffecdf2b
1 changed files with 0 additions and 5 deletions
|
@ -407,16 +407,11 @@ static int cfb_invert(const struct char_framebuffer *fb)
|
||||||
int cfb_framebuffer_clear(const struct device *dev, bool clear_display)
|
int cfb_framebuffer_clear(const struct device *dev, bool clear_display)
|
||||||
{
|
{
|
||||||
const struct char_framebuffer *fb = &char_fb;
|
const struct char_framebuffer *fb = &char_fb;
|
||||||
struct display_buffer_descriptor desc;
|
|
||||||
|
|
||||||
if (!fb || !fb->buf) {
|
if (!fb || !fb->buf) {
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
desc.buf_size = fb->size;
|
|
||||||
desc.width = fb->x_res;
|
|
||||||
desc.height = fb->y_res;
|
|
||||||
desc.pitch = fb->x_res;
|
|
||||||
memset(fb->buf, 0, fb->size);
|
memset(fb->buf, 0, fb->size);
|
||||||
|
|
||||||
if (clear_display) {
|
if (clear_display) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue