Ver Fonte

msm: camera: isp: Remove unnecessary bound check in bw update path

Currently, iterating through all the possible split indexes will
always hit the check for max value at the end. Remove the check
as the KW error corresponding to it is false positive.

CRs-Fixed: 2841729
Change-Id: I8b555ab3c4680e348d3af1169d95b79e0d8572a9
Signed-off-by: Mukund Madhusudan Atre <[email protected]>
Mukund Madhusudan Atre há 4 anos atrás
pai
commit
32e2da9905
1 ficheiros alterados com 0 adições e 5 exclusões
  1. 0 5
      drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

+ 0 - 5
drivers/cam_isp/isp_hw_mgr/cam_ife_hw_mgr.c

@@ -5295,11 +5295,6 @@ static int cam_isp_blob_bw_update_v2(
 		}
 	}
 
-	if (split_idx == CAM_ISP_HW_SPLIT_MAX || split_idx == INT_MIN) {
-		CAM_ERR(CAM_ISP, "Invalide hw res");
-		return -EINVAL;
-	}
-
 	nrdi_l_bw_updated = false;
 	nrdi_r_bw_updated = false;
 	list_for_each_entry(hw_mgr_res, &ctx->res_list_sfe_src, list) {