diff options
author | Hans de Goede <hdegoede@redhat.com> | 2022-06-15 23:50:04 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-07-08 18:22:29 +0300 |
commit | f94059f86ee5f02354580fe8a3071c4785c1f4f0 (patch) | |
tree | d0d22112e365dbe3451d3ac46baa317846d34695 /drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c | |
parent | 1282033fe046b64be294de71cfa569329c491c2b (diff) | |
download | linux-f94059f86ee5f02354580fe8a3071c4785c1f4f0.tar.xz |
media: atomisp: drop contiguous flag from struct ia_css_frame
Drop the contiguous flag from struct ia_css_frame, it is always false /
not used.
Link: https://lore.kernel.org/linux-media/20220615205037.16549-8-hdegoede@redhat.com
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c')
-rw-r--r-- | drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c | 6 |
1 files changed, 1 insertions, 5 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 cb0b579fbadf..b748b133f01e 100644 --- a/drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c +++ b/drivers/staging/media/atomisp/pci/runtime/frame/src/frame.c @@ -732,10 +732,7 @@ static int frame_allocate_buffer_data(struct ia_css_frame *frame) IA_CSS_ENTER_LEAVE_PRIVATE("frame->data_bytes=%d\n", frame->data_bytes); #endif frame->data = hmm_alloc(frame->data_bytes, - HMM_BO_PRIVATE, 0, NULL, - frame->contiguous ? - ATOMISP_MAP_FLAG_CONTIGUOUS : 0); - + HMM_BO_PRIVATE, 0, NULL, 0); if (frame->data == mmgr_NULL) return -ENOMEM; return 0; @@ -796,7 +793,6 @@ static struct ia_css_frame *frame_create(unsigned int width, me->info.format = format; me->info.padded_width = padded_width; me->info.raw_bit_depth = raw_bit_depth; - me->contiguous = false; me->valid = valid; me->data_bytes = 0; me->data = mmgr_NULL; |