ASoC: SOF: trace: Simplify count adjustment in trace_read
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 28 Jan 2022 12:06:27 +0000 (14:06 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 13:06:48 +0000 (13:06 +0000)
commit7bd04b8d46b9362fb1ade63b99cd6ddee0740af4
tree153b01395215719ecf72772ddbe1b5ca62fb71b6
parent0cfe76156cc1c7f8a707969c03ed2242db8f0292
ASoC: SOF: trace: Simplify count adjustment in trace_read

The first count check and fixup against "buffer - lpos" can be removed as
we will do the adjustment later against the "avail" in
sof_dfsentry_trace_read()

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220128120627.18443-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/trace.c