]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: omap-mcbsp: No need to initialize max_xx_thres when it is not used
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 8 Nov 2018 07:30:00 +0000 (09:30 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 13 Nov 2018 17:50:32 +0000 (09:50 -0800)
commitbd5fe5eb706f5ce5499c5c9495285d927033bba4
treee1bffd71add44ef91f5e0297564b2378092a7f89
parenta1e9ddb3ce67c140d7ba70d9fdb4218aa5b52230
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>
sound/soc/omap/omap-mcbsp.c