From 934bb3ea14dbee3310b7b8e6022f40f8e4624e9a Mon Sep 17 00:00:00 2001 From: Karthik Anantha Ram Date: Wed, 22 Jul 2020 11:03:17 -0700 Subject: [PATCH] msm: camera: ope: Fix unsequenced clang warning Address unsequenced operations to avoid any undefined behavior. CRs-Fixed: 2738394 Change-Id: Ieac88c20d1411771d8b722ccb4c417b47570f7ca Signed-off-by: Karthik Anantha Ram --- drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c b/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c index bb1972c513b3..f16b329aaadd 100644 --- a/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c +++ b/drivers/cam_ope/ope_hw_mgr/cam_ope_hw_mgr.c @@ -2155,8 +2155,6 @@ static int cam_ope_mgr_process_cmd_desc(struct cam_ope_hw_mgr *hw_mgr, if (rc || !cpu_addr) { CAM_ERR(CAM_OPE, "get cmd buf failed %x", hw_mgr->iommu_hdl); - num_cmd_buf = (num_cmd_buf > 0) ? - num_cmd_buf-- : 0; goto end; } if ((len <= cmd_desc[i].offset) ||