From: Peter Ujfalusi Date: Thu, 8 Nov 2018 07:30:00 +0000 (+0200) Subject: ASoC: omap-mcbsp: No need to initialize max_xx_thres when it is not used X-Git-Tag: v5.15~6969^2^2~40^2~166 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f15c19af929d380d0acb2a8d8277d688351bd5de;p=platform%2Fkernel%2Flinux-starfive.git 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: Peter Ujfalusi Acked-by: Jarkko Nikula Tested-by: Jarkko Nikula Signed-off-by: Mark Brown --- diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 8cab115..e0ef477 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c @@ -727,9 +727,6 @@ static int omap_mcbsp_init(struct platform_device *pdev) "Unable to create additional controls\n"); goto err_thres; } - } else { - mcbsp->max_tx_thres = -EINVAL; - mcbsp->max_rx_thres = -EINVAL; } ret = omap_mcbsp_st_init(pdev);