Commit 15b5c496 authored by Tang Bin's avatar Tang Bin Committed by Mark Brown

ASoC: fsl_micfil: Fix unused assignment in fsl_set_clock_params()

Delete unused initialized value of 'ret', because it will
be assigned by the function fsl_micfil_set_mclk_rate().
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200518110040.18036-1-tangbin@cmss.chinamobile.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent f0a77d2b
...@@ -295,7 +295,7 @@ static int fsl_set_clock_params(struct device *dev, unsigned int rate) ...@@ -295,7 +295,7 @@ static int fsl_set_clock_params(struct device *dev, unsigned int rate)
{ {
struct fsl_micfil *micfil = dev_get_drvdata(dev); struct fsl_micfil *micfil = dev_get_drvdata(dev);
int clk_div; int clk_div;
int ret = 0; int ret;
ret = fsl_micfil_set_mclk_rate(micfil, rate); ret = fsl_micfil_set_mclk_rate(micfil, rate);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment