ASoC: AMD: Fix build warning
authorAkshu Agrawal <akshu.agrawal@amd.com>
Thu, 26 Jul 2018 06:04:08 +0000 (14:04 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 26 Jul 2018 13:07:55 +0000 (14:07 +0100)
commit7699676081ded2e149e798f9205f1f089aa3a6bc
tree2711966e3ba6ace28e6429d8951b4dc51dc20b0d
parentc183fec10ae6b3d1dfb77471d4158e576f6b43ae
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>
sound/soc/amd/acp-da7219-max98357a.c