提交 3b4bf692 编写于 作者: F Fabio Estevam 提交者: Mauro Carvalho Chehab

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: NSteve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 f31c76a9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册