From 5b2a186d81829e454b8b02ce0cc8cae23c028624 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sat, 19 Jun 2021 23:04:31 +0000 Subject: [PATCH] amlogic: osd: Fix comparsion checks Change-Id: Ide1f24ad8b6e6348df9ea5b1902116a2dc6ecae3 --- drivers/amlogic/media/osd/osd_debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/osd/osd_debug.c b/drivers/amlogic/media/osd/osd_debug.c index e974956ff004..110871de15f7 100644 --- a/drivers/amlogic/media/osd/osd_debug.c +++ b/drivers/amlogic/media/osd/osd_debug.c @@ -544,7 +544,7 @@ static void osd_test_rect(void) struct ge2d_context_s *context = ge2d_context; #ifdef CONFIG_AMLOGIC_MEDIA_CANVAS - if (!osd_hw.osd_meson_dev.osd_ver == OSD_SIMPLE) { + if (osd_hw.osd_meson_dev.osd_ver != OSD_SIMPLE) { canvas_read(OSD1_CANVAS_INDEX, &cs); cs_addr = cs.addr; cs_width = cs.width; @@ -659,7 +659,7 @@ static void osd_test_rect(void) static void osd_debug_auto_test(void) { - if (!osd_hw.osd_meson_dev.osd_ver == OSD_SIMPLE) + if (osd_hw.osd_meson_dev.osd_ver != OSD_SIMPLE) osd_test_colorbar(); osd_test_dummydata(); -- 2.20.1