ASoC: codecs: rt1308-sdw: remove duplicate allocation
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 15 May 2020 21:15:31 +0000 (16:15 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 18 May 2020 11:38:30 +0000 (12:38 +0100)
commitee5866222ab58531c988492ea54931c1346d4fd4
treed86bfb3e6eaba110dc017b0f535ebcbdcdb75074
parent07b542fe831cbefce163ad1b3aa7292c8a6332b8
ASoC: codecs: rt1308-sdw: remove duplicate allocation

The .read_prop callback is supposed to be called by the SoundWire core
only. Calling it again from this driver results in an additional
memory allocation for no good reason.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Cc: Oder Chiou <oder_chiou@realtek.com>
Cc: Shuming Fan <shumingf@realtek.com>
Cc: Jack Yu <jack.yu@realtek.com>
Link: https://lore.kernel.org/r/20200515211531.11416-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1308-sdw.c