diff options
author | Akshu Agrawal <akshu.agrawal@amd.com> | 2018-07-26 09:04:08 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-26 16:07:55 +0300 |
commit | 7699676081ded2e149e798f9205f1f089aa3a6bc (patch) | |
tree | 2711966e3ba6ace28e6429d8951b4dc51dc20b0d /sound/soc/amd/acp-da7219-max98357a.c | |
parent | c183fec10ae6b3d1dfb77471d4158e576f6b43ae (diff) | |
download | linux-7699676081ded2e149e798f9205f1f089aa3a6bc.tar.xz |
ASoC: AMD: Fix build warning
Fixes
sound/soc/amd/acp-da7219-max98357a.c: In function 'cz_probe':
sound/soc/amd/acp-da7219-max98357a.c:367:3: warning: 'ret' may
be used uninitialized in this function [-Wmaybe-uninitialized]
dev_err(&pdev->dev, "Failed to register regulator: %d\n",
ret);
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp-da7219-max98357a.c')
-rw-r--r-- | sound/soc/amd/acp-da7219-max98357a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index cd3cf6e691a9..8e3275a96a82 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -365,7 +365,7 @@ static int cz_probe(struct platform_device *pdev) &acp_da7219_cfg); if (IS_ERR(rdev)) { dev_err(&pdev->dev, "Failed to register regulator: %d\n", - ret); + (int)PTR_ERR(rdev)); return -EINVAL; } |