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

Subject: media: atomisp: runtime: frame: remove #ifdef ISP2401
Author:  Kate Hsuan <[email protected]>
Date:    Mon May 8 07:26:29 2023 +0100

The actions of ISP2401 and 2400 are determined at the runtime.

Link: https://lore.kernel.org/r/[email protected]

Signed-off-by: Kate Hsuan <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

---

diff --git a/drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c 
b/drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
index 83bb42e05421..1e374ae848e3 100644
--- a/drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
+++ b/drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c
@@ -601,9 +601,6 @@ static void frame_init_qplane6_planes(struct ia_css_frame 
*frame)
 
 static int frame_allocate_buffer_data(struct ia_css_frame *frame)
 {
-#ifdef ISP2401
-       IA_CSS_ENTER_LEAVE_PRIVATE("frame->data_bytes=%d\n", frame->data_bytes);
-#endif
        frame->data = hmm_alloc(frame->data_bytes);
        if (frame->data == mmgr_NULL)
                return -ENOMEM;
@@ -635,15 +632,11 @@ static int frame_allocate_with_data(struct ia_css_frame 
**frame,
 
        if (err) {
                kvfree(me);
-#ifndef ISP2401
-               return err;
-#else
-               me = NULL;
-#endif
+               *frame = NULL;
+       } else {
+               *frame = me;
        }
 
-       *frame = me;
-
        return err;
 }
 

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

Reply via email to