amlogic: osd: Fix comparsion checks
authorStricted <info@stricted.net>
Sat, 19 Jun 2021 23:04:31 +0000 (23:04 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 3 Jul 2021 01:04:23 +0000 (21:04 -0400)
Change-Id: Ide1f24ad8b6e6348df9ea5b1902116a2dc6ecae3

drivers/amlogic/media/osd/osd_debug.c

index e974956ff004f641e252ad74341183375faa37ea..110871de15f7a3dd5d69ca48c64cc2f6c31295a1 100644 (file)
@@ -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();