ASoC: SOF: trace: remove code duplication in sof_wait_trace_avail()
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 24 May 2019 19:23:05 +0000 (14:23 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 28 May 2019 14:52:14 +0000 (15:52 +0100)
commitf627b0524ccf993b646bd56f9bdacc973c8c39cc
treedce1f9fdc42bc0920821452fcedda98856a1d44a
parentb11c5b5e573968d69aa9fec7507de7aa8fbf76e6
ASoC: SOF: trace: remove code duplication in sof_wait_trace_avail()

Move duplicated code in sof_wait_trace_avail() to a helper function.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/trace.c