Selaa lähdekoodia

msm: camera: isp: Remove unncessary rc assignments

Removes unnecessary rc assignments since they were not
being checked and there are already logs in the called
functions in case of error.

CRs-Fixed: 3322998
Change-Id: I3a087dea790b688956de34fd4a76911261293629
Signed-off-by: Joshua Florez <[email protected]>
Joshua Florez 2 vuotta sitten
vanhempi
sitoutus
175622f3eb
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      drivers/cam_isp/cam_isp_context.c

+ 3 - 3
drivers/cam_isp/cam_isp_context.c

@@ -5097,7 +5097,7 @@ static int __cam_isp_ctx_flush_req_in_top_state(
 
 	CAM_DBG(CAM_ISP, "Flush pending list");
 	spin_lock_bh(&ctx->lock);
-	rc = __cam_isp_ctx_flush_req(ctx, &ctx->pending_req_list, flush_req);
+	__cam_isp_ctx_flush_req(ctx, &ctx->pending_req_list, flush_req);
 	spin_unlock_bh(&ctx->lock);
 
 	if (flush_req->type == CAM_REQ_MGR_FLUSH_TYPE_ALL) {
@@ -5140,11 +5140,11 @@ static int __cam_isp_ctx_flush_req_in_top_state(
 
 		spin_lock_bh(&ctx->lock);
 		if (!list_empty(&ctx->wait_req_list))
-			rc = __cam_isp_ctx_flush_req(ctx, &ctx->wait_req_list,
+			__cam_isp_ctx_flush_req(ctx, &ctx->wait_req_list,
 				flush_req);
 
 		if (!list_empty(&ctx->active_req_list))
-			rc = __cam_isp_ctx_flush_req(ctx, &ctx->active_req_list,
+			__cam_isp_ctx_flush_req(ctx, &ctx->active_req_list,
 				flush_req);
 
 		ctx_isp->active_req_cnt = 0;