diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-02-10 09:38:50 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-26 10:31:24 -0500 |
commit | 3b4bf692e54ef9f2fd32ccd0434d5c396537596f (patch) | |
tree | def89e4ed41078155e5f3c51eb2649a6da859707 | |
parent | f31c76a94861fb8d11c713c13c22fcd76bb715a3 (diff) | |
download | op-kernel-dev-3b4bf692e54ef9f2fd32ccd0434d5c396537596f.zip op-kernel-dev-3b4bf692e54ef9f2fd32ccd0434d5c396537596f.tar.gz |
media: imx-ic-prpencvf: Use empty initializer to clear all struct members
{0} only cleans the first member of the structure.
Use {} instead, which cleans all the members of the structure.
Reported-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/staging/media/imx/imx-ic-prpencvf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/imx/imx-ic-prpencvf.c b/drivers/staging/media/imx/imx-ic-prpencvf.c index 143038c..60f392a 100644 --- a/drivers/staging/media/imx/imx-ic-prpencvf.c +++ b/drivers/staging/media/imx/imx-ic-prpencvf.c @@ -923,7 +923,7 @@ static int prp_enum_frame_size(struct v4l2_subdev *sd, struct v4l2_subdev_frame_size_enum *fse) { struct prp_priv *priv = sd_to_priv(sd); - struct v4l2_subdev_format format = {0}; + struct v4l2_subdev_format format = {}; const struct imx_media_pixfmt *cc; int ret = 0; |