Commit 0e34fe5b authored by Ricardo Ribalda's avatar Ricardo Ribalda Committed by Mauro Carvalho Chehab

media: ipu3-cio2: Do not zero reserved fields

Core code already clears reserved fields of struct v4l2_pix_format_mplane,
check commit 4e1e0eb0 ("media: v4l2-ioctl: Zero v4l2_plane_pix_format
reserved fields").
Signed-off-by: default avatarRicardo Ribalda <ribalda@chromium.org>
Reviewed-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 7e761857
...@@ -1094,12 +1094,9 @@ static int cio2_v4l2_try_fmt(struct file *file, void *fh, struct v4l2_format *f) ...@@ -1094,12 +1094,9 @@ static int cio2_v4l2_try_fmt(struct file *file, void *fh, struct v4l2_format *f)
mpix->pixelformat = fmt->fourcc; mpix->pixelformat = fmt->fourcc;
mpix->colorspace = V4L2_COLORSPACE_RAW; mpix->colorspace = V4L2_COLORSPACE_RAW;
mpix->field = V4L2_FIELD_NONE; 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].bytesperline = cio2_bytesperline(mpix->width);
mpix->plane_fmt[0].sizeimage = mpix->plane_fmt[0].bytesperline * mpix->plane_fmt[0].sizeimage = mpix->plane_fmt[0].bytesperline *
mpix->height; mpix->height;
memset(mpix->plane_fmt[0].reserved, 0,
sizeof(mpix->plane_fmt[0].reserved));
/* use default */ /* use default */
mpix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; mpix->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment