浏览代码

msm: camera: flash: Fix if statement indentation

If statement was incorrectly indented one level too deep.
This causes clang warning to be triggered during compilation.

CRs-Fixed: 2835738
Change-Id: I242b68b134eb5665a5b189d2cc430ecc385f0df3
Signed-off-by: Karthik Jayakumar <[email protected]>
Karthik Jayakumar 4 年之前
父节点
当前提交
e59f8a5375
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      drivers/cam_sensor_module/cam_flash/cam_flash_core.c

+ 7 - 7
drivers/cam_sensor_module/cam_flash/cam_flash_core.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/module.h>
@@ -1276,12 +1276,12 @@ update_req_mgr:
 		if (fctrl->bridge_intf.crm_cb &&
 			fctrl->bridge_intf.crm_cb->add_req)
 			rc = fctrl->bridge_intf.crm_cb->add_req(&add_req);
-			if  (rc) {
-				CAM_ERR(CAM_FLASH,
-					"Failed in adding request: %llu to request manager",
-					csl_packet->header.request_id);
-				return rc;
-			}
+		if (rc) {
+			CAM_ERR(CAM_FLASH,
+				"Failed in adding request: %llu to request manager",
+				csl_packet->header.request_id);
+			return rc;
+		}
 		CAM_DBG(CAM_FLASH, "add req to req_mgr= %lld", add_req.req_id);
 	}
 	return rc;