Skip to contentSkip to conversation

media: imx-ic-prpencvf: Use empty initializer to clear all struct members

PATCH New Fabio Estevam 1 participant 1 message Feb 10, 2018

Subsystems (4)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 media: imx-ic-prpencvf: Use empty initializer to clear all struct members

From: Fabio Estevam <[email protected]>

{0} only cleans the first member of the structure.

Use {} instead, which cleans all the members of the structure.

---
 drivers/staging/media/imx/imx-ic-prpencvf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/imx/imx-ic-prpencvf.c +1 -1
index 143038c..60f392a 100644
@@ -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;
 
Signature · 1 line
2.7.4