Commit f15c19af authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: omap-mcbsp: No need to initialize max_xx_thres when it is not used

Initializing to -EINVAL is not correct as the variables are unsigned and
if buffer_size is 0 then they are not used anyway.
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Tested-by: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 465d85b3
...@@ -727,9 +727,6 @@ static int omap_mcbsp_init(struct platform_device *pdev) ...@@ -727,9 +727,6 @@ static int omap_mcbsp_init(struct platform_device *pdev)
"Unable to create additional controls\n"); "Unable to create additional controls\n");
goto err_thres; goto err_thres;
} }
} else {
mcbsp->max_tx_thres = -EINVAL;
mcbsp->max_rx_thres = -EINVAL;
} }
ret = omap_mcbsp_st_init(pdev); ret = omap_mcbsp_st_init(pdev);
......
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