Skip to content

Commit

Permalink
media: staging/intel-ipu3: Do not zero reserved fields
Browse files Browse the repository at this point in the history
Core code already clears reserved fields of struct v4l2_pix_format_mplane,
check commit 4e1e0eb ("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>
  • Loading branch information
Ricardo Ribalda authored and Mauro Carvalho Chehab committed Feb 6, 2021
1 parent 0e34fe5 commit c432147
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/media/ipu3/ipu3-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c432147

Please sign in to comment.