diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-02-09 18:11:16 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-26 10:31:08 -0500 |
commit | f31c76a94861fb8d11c713c13c22fcd76bb715a3 (patch) | |
tree | 7c9d2357b47c2171deccf475cd64a9ff267dff43 /drivers/staging | |
parent | aebd90aa3244e3539001919dcfbf00027d5ab63c (diff) | |
download | op-kernel-dev-f31c76a94861fb8d11c713c13c22fcd76bb715a3.zip op-kernel-dev-f31c76a94861fb8d11c713c13c22fcd76bb715a3.tar.gz |
media: imx-media-internal-sd: Use empty initializer
When building with W=1 the following warning shows up:
drivers/staging/media/imx/imx-media-internal-sd.c:274:49: warning: Using plain integer as NULL pointer
Fix this problem by using an empty initializer, which guarantees that all
struct members are zero-cleared.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/imx/imx-media-internal-sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/imx/imx-media-internal-sd.c b/drivers/staging/media/imx/imx-media-internal-sd.c index 70833fe..daf66c2 100644 --- a/drivers/staging/media/imx/imx-media-internal-sd.c +++ b/drivers/staging/media/imx/imx-media-internal-sd.c @@ -271,7 +271,7 @@ static int add_internal_subdev(struct imx_media_dev *imxmd, int ipu_id) { struct imx_media_internal_sd_platformdata pdata; - struct platform_device_info pdevinfo = {0}; + struct platform_device_info pdevinfo = {}; struct platform_device *pdev; pdata.grp_id = isd->id->grp_id; |