OSDN Git Service

media: staging/intel-ipu3: Do not zero reserved fields
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 11 Jan 2021 14:54:45 +0000 (15:54 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 6 Feb 2021 07:37:45 +0000 (08:37 +0100)
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>
drivers/staging/media/ipu3/ipu3-v4l2.c

index 4dc8d91..60aa02e 100644 (file)
@@ -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;
 }