From 175622f3eb66fe6d287eedb58cfb1de0a39a7c27 Mon Sep 17 00:00:00 2001 From: Joshua Florez Date: Thu, 27 Oct 2022 10:29:09 -0700 Subject: [PATCH] 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 --- drivers/cam_isp/cam_isp_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cam_isp/cam_isp_context.c b/drivers/cam_isp/cam_isp_context.c index cc8fa950cb..e0eadaea4c 100644 --- a/drivers/cam_isp/cam_isp_context.c +++ b/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;