mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 17:35:36 -04:00
media: atomisp: remove unused attribute argument from ia_css_frame_map()
ia_css_frame_map() has only one caller which passes a hardcoded 0 for the attribute argument, drop it. Link: https://lore.kernel.org/linux-media/20220615205037.16549-15-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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
c0039ef3dc
commit
4be4504e9d
@@ -1371,7 +1371,7 @@ static int atomisp_qbuf(struct file *file, void *fh, struct v4l2_buffer *buf)
|
||||
|
||||
ret = ia_css_frame_map(&handle, &frame_info,
|
||||
(void __user *)buf->m.userptr,
|
||||
0, pgnr);
|
||||
pgnr);
|
||||
if (ret) {
|
||||
dev_err(isp->dev, "Failed to map user buffer\n");
|
||||
goto error;
|
||||
|
||||
@@ -295,7 +295,6 @@ int
|
||||
ia_css_frame_map(struct ia_css_frame **frame,
|
||||
const struct ia_css_frame_info *info,
|
||||
const void __user *data,
|
||||
u16 attribute,
|
||||
unsigned int pgnr);
|
||||
|
||||
/* @brief Unmap a CSS frame structure.
|
||||
|
||||
@@ -146,7 +146,6 @@ int ia_css_frame_allocate(struct ia_css_frame **frame,
|
||||
int ia_css_frame_map(struct ia_css_frame **frame,
|
||||
const struct ia_css_frame_info *info,
|
||||
const void __user *data,
|
||||
u16 attribute,
|
||||
unsigned int pgnr)
|
||||
{
|
||||
int err = 0;
|
||||
@@ -172,9 +171,7 @@ int ia_css_frame_map(struct ia_css_frame **frame,
|
||||
goto error;
|
||||
}
|
||||
|
||||
me->data = hmm_alloc(me->data_bytes, HMM_BO_USER, 0, data,
|
||||
attribute & ATOMISP_MAP_FLAG_CACHED);
|
||||
|
||||
me->data = hmm_alloc(me->data_bytes, HMM_BO_USER, 0, data, 0);
|
||||
if (me->data == mmgr_NULL)
|
||||
err = -EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user