diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-05-02 15:13:35 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-04 15:31:19 +0100 |
commit | 43556516fffe1d2be2d4a73cfe7cd34d6062dd11 (patch) | |
tree | b5b5f847ac171b6652e778ff886c7c1023a0b0d0 /tools/perf/scripts/python/syscall-counts.py | |
parent | f80beaf6f2b1eb55fb1b2128a43e0a0c9c4d19de (diff) |
ASoC: soc-generic-dmaengine-pcm: Use default config when none is given
snd_dmaengine_pcm_register() can be passed a NULL pointer for the config
which means that the we have to test for pcm->config being non NULL
before accessing it. Make the code more straight forward by providing a
default config when none is passed. With this pcm->config is never NULL
and we can skip all the if (pcm->config) tests.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20220502131335.2604158-1-s.hauer@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions