From 5277f10c4aa57408d3ff449ca60a087f83b50655 Mon Sep 17 00:00:00 2001 From: Gaurav Jindal Date: Thu, 17 Dec 2020 14:33:08 +0530 Subject: [PATCH] msm: camera: isp: Change comparison condition to fix compilation With auto compare flags enabled, compilation fails for some conditions. This commit changes the comparison condition. Change-Id: I411ab5127afba3d4073092d8fc44aa36982fbb27 CRs-Fixed: 2830502 Signed-off-by: Gaurav Jindal --- drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c index 063f66ef2f..85d4c10506 100644 --- a/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c +++ b/drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c @@ -5488,8 +5488,7 @@ static int cam_isp_blob_sensor_config( path_config = &dim_config->ipp_path; } else if (res_id == CAM_IFE_PIX_PATH_RES_PPP) { path_config = &dim_config->ppp_path; - } else if (res_id >= CAM_IFE_PIX_PATH_RES_RDI_0 || - res_id <= CAM_IFE_PIX_PATH_RES_RDI_4) { + } else if (res_id <= CAM_IFE_PIX_PATH_RES_RDI_4) { path_config = &dim_config->rdi_path[res_id]; } else { CAM_DBG(CAM_ISP, "Invalid res id %u", res_id);