OSDN Git Service

ASoC: Intel: sst: Simplify is_byt_cr()
authorStephan Gerhold <stephan@gerhold.net>
Wed, 2 Jan 2019 19:39:03 +0000 (20:39 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 4 Jan 2019 15:15:51 +0000 (15:15 +0000)
commitb97205ef95efddee018061dfee14c995be08dde3
treec6e1589e274fae85c8b37f2bcb694f7126d528ab
parent5198baf8817d7e6e0fe2f3e74ea2ead714b74d9c
ASoC: Intel: sst: Simplify is_byt_cr()

is_byt_cr() and its usage can be simplified by returning the bool
directly, instead of through a pointer. This works because the
return value is just treated as bytcr = false and is not used
otherwise.

This patch also removes the extra check of
IS_ENABLED(CONFIG_IOSF_MBI) in favor of checking
iosf_mbi_available() directly. The header already takes care
of returning false if the config option is not enabled.

No functional change.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_acpi.c