[COMMON] fimc-is2: Fix a bug from prevent in hw-control
authorSunmi Lee <carrotsm.lee@samsung.com>
Mon, 2 Jul 2018 05:41:42 +0000 (14:41 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:51 +0000 (20:22 +0300)
The condition in FIMC_BUG macro function is always true.
This condition is already checked above conditional sentence.

Prevent ID: 232655
PR JIRA ID: CPR-24

Change-Id: I3058439864b49df4236dea6698689609f62fb9f8
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-control.c

index 95fec55678baa4d7f1857362dee0139a27a6eaa1..270c854d05338a0c6419fcd53a5b02cf2301d7ac 100644 (file)
@@ -2317,7 +2317,7 @@ int fimc_is_hardware_shot_done(struct fimc_is_hw_ip *hw_ip, struct fimc_is_frame
                frame_manager_print_info_queues(framemgr);
                print_all_hw_frame_count(hw_ip->hardware);
                framemgr_x_barrier_common(framemgr, 0, flags);
-               FIMC_BUG(!frame);
+               FIMC_BUG(1);
        }
 
        head = GET_HEAD_GROUP_IN_DEVICE(FIMC_IS_DEVICE_ISCHAIN,