aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/media/atomisp/pci/atomisp_ioctl.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-05-06 19:56:05 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-06-09 14:26:04 +0100
commit649920afc4269fe3db74feadffb8f18dea057dc1 (patch)
tree53e30c1e9f9b4cd3189b3c87b8ac9867d23d12c6 /drivers/staging/media/atomisp/pci/atomisp_ioctl.c
parentmedia: atomisp: sh_css_mipi: Remove #ifdef ISP2401 (diff)
downloadwireguard-linux-649920afc4269fe3db74feadffb8f18dea057dc1.tar.xz
wireguard-linux-649920afc4269fe3db74feadffb8f18dea057dc1.zip
media: atomisp: Remove res_overflow parameter from atomisp_try_fmt()
The only remaining caller of atomisp_try_fmt() always passes NULL for the res_overflow parameter. Drop it and simplify atomisp_try_fmt(). 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/atomisp_ioctl.c')
-rw-r--r--drivers/staging/media/atomisp/pci/atomisp_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c
index 384f31fc66c5..4d927799f53b 100644
--- a/drivers/staging/media/atomisp/pci/atomisp_ioctl.c
+++ b/drivers/staging/media/atomisp/pci/atomisp_ioctl.c
@@ -896,7 +896,7 @@ static int atomisp_try_fmt_cap(struct file *file, void *fh,
f->fmt.pix.width += pad_w;
f->fmt.pix.height += pad_h;
- ret = atomisp_try_fmt(vdev, &f->fmt.pix, NULL);
+ ret = atomisp_try_fmt(vdev, &f->fmt.pix);
if (ret)
return ret;