Skip to content

Commit f15c19a

Browse files
Peter Ujfalusibroonie
authored andcommitted
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 <peter.ujfalusi@ti.com> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 465d85b commit f15c19a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sound/soc/omap/omap-mcbsp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,6 @@ static int omap_mcbsp_init(struct platform_device *pdev)
727727
"Unable to create additional controls\n");
728728
goto err_thres;
729729
}
730-
} else {
731-
mcbsp->max_tx_thres = -EINVAL;
732-
mcbsp->max_rx_thres = -EINVAL;
733730
}
734731

735732
ret = omap_mcbsp_st_init(pdev);

0 commit comments

Comments
 (0)