diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2021-01-11 15:54:45 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-02-06 08:37:45 +0100 |
commit | c432147c771d5efe00d0e96ceb7779636cd31300 (patch) | |
tree | 39c6f0ec958966211d8ca364137239d8ade12541 /drivers/staging/media/ipu3 | |
parent | 0e34fe5beacef8d6cbec5c8486309871bb18e7d5 (diff) | |
download | linux-c432147c771d5efe00d0e96ceb7779636cd31300.tar.bz2 |
media: staging/intel-ipu3: Do not zero reserved fields
Core code already clears reserved fields of struct v4l2_pix_format_mplane,
check commit 4e1e0eb0e074 ("media: v4l2-ioctl: Zero v4l2_plane_pix_format
reserved fields").
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/ipu3')
-rw-r--r-- | drivers/staging/media/ipu3/ipu3-v4l2.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c index 4dc8d9165f63..60aa02eb7d2a 100644 --- a/drivers/staging/media/ipu3/ipu3-v4l2.c +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c @@ -773,9 +773,6 @@ static int imgu_try_fmt(struct file *file, void *fh, struct v4l2_format *f) pixm->pixelformat = fmt->fourcc; - memset(pixm->plane_fmt[0].reserved, 0, - sizeof(pixm->plane_fmt[0].reserved)); - return 0; } |