This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: venus: simplify the return expression of session_process_buf()
Author:  Qinglang Miao <[email protected]>
Date:    Mon Sep 21 14:10:38 2020 +0100

Simplify the return expression.

Signed-off-by: Qinglang Miao <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Signed-off-by: Stanimir Varbanov <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/platform/qcom/venus/helpers.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

---

diff --git a/drivers/media/platform/qcom/venus/helpers.c 
b/drivers/media/platform/qcom/venus/helpers.c
index a2ceab7f9ddb..3267a4ebe4af 100644
--- a/drivers/media/platform/qcom/venus/helpers.c
+++ b/drivers/media/platform/qcom/venus/helpers.c
@@ -502,7 +502,6 @@ session_process_buf(struct venus_inst *inst, struct 
vb2_v4l2_buffer *vbuf)
        struct vb2_buffer *vb = &vbuf->vb2_buf;
        unsigned int type = vb->type;
        struct hfi_frame_data fdata;
-       int ret;
 
        memset(&fdata, 0, sizeof(fdata));
        fdata.alloc_len = buf->size;
@@ -533,11 +532,7 @@ session_process_buf(struct venus_inst *inst, struct 
vb2_v4l2_buffer *vbuf)
                fdata.offset = 0;
        }
 
-       ret = hfi_session_process_buf(inst, &fdata);
-       if (ret)
-               return ret;
-
-       return 0;
+       return hfi_session_process_buf(inst, &fdata);
 }
 
 static bool is_dynamic_bufmode(struct venus_inst *inst)

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to