From 63da5cde2cfde799b25ac164a41aa0926d092314 Mon Sep 17 00:00:00 2001 From: Sunmi Lee Date: Mon, 2 Jul 2018 14:37:28 +0900 Subject: [PATCH] [COMMON] fimc-is2: Fix a bug from prevent - no_effect The type of "mode" in sensor_2l3_cis_is_wdr_mode_on is unsigned int. So it is no use to check the value of mode is less than zero. Prevent ID: 233013 PR JIRA ID: CPR-24 Change-Id: I4e83edb0f69c14cc783372453b4ed7dda8e15b4f Signed-off-by: Sunmi Lee --- .../fimc-is2/sensor/module_framework/cis/fimc-is-cis-2l3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2l3.c b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2l3.c index eb8fd7ac49a2..bf87bed6d032 100644 --- a/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2l3.c +++ b/drivers/media/platform/exynos/fimc-is2/sensor/module_framework/cis/fimc-is-cis-2l3.c @@ -80,7 +80,7 @@ static bool sensor_2l3_cis_is_wdr_mode_on(cis_shared_data *cis_data) if (!fimc_is_vender_wdr_mode_on(cis_data)) return false; - if (mode < 0 || mode >= SENSOR_2L3_MODE_MAX) { + if (mode >= SENSOR_2L3_MODE_MAX) { err("invalid mode(%d)!!", mode); return false; } -- 2.20.1