diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2021-01-11 15:54:36 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-02-06 08:37:29 +0100 |
commit | 0e34fe5beacef8d6cbec5c8486309871bb18e7d5 (patch) | |
tree | b7f8b06f942ec8320e2bc3f92570da0065f7f13a /drivers/media | |
parent | 7e7618579dcde5b2e533a6f53ae7e26d3ddcc679 (diff) | |
download | linux-stable-0e34fe5beacef8d6cbec5c8486309871bb18e7d5.tar.gz linux-stable-0e34fe5beacef8d6cbec5c8486309871bb18e7d5.tar.bz2 linux-stable-0e34fe5beacef8d6cbec5c8486309871bb18e7d5.zip |
media: ipu3-cio2: 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/media')
-rw-r--r-- | drivers/media/pci/intel/ipu3/ipu3-cio2-main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c b/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c index d13d64ae342e..a99ed5b7cd80 100644 --- a/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c +++ b/drivers/media/pci/intel/ipu3/ipu3-cio2-main.c @@ -1094,12 +1094,9 @@ static int cio2_v4l2_try_fmt(struct file *file, void *fh, struct v4l2_format *f) mpix->pixelformat = fmt->fourcc; mpix->colorspace = V4L2_COLORSPACE_RAW; mpix->field = V4L2_FIELD_NONE; - memset(mpix->reserved, 0, sizeof(mpix->reserved)); mpix->plane_fmt[0].bytesperline = cio2_bytesperline(mpix->width); mpix->plane_fmt[0].sizeimage = mpix->plane_fmt[0].bytesperline * mpix->height; - memset(mpix->plane_fmt[0].reserved, 0, - sizeof(mpix->plane_fmt[0].reserved)); /* use default */ mpix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; |