diff options
| author | 2022-05-02 15:13:35 +0200 | |
|---|---|---|
| committer | 2022-05-04 15:31:19 +0100 | |
| commit | 43556516fffe1d2be2d4a73cfe7cd34d6062dd11 (patch) | |
| tree | b5b5f847ac171b6652e778ff886c7c1023a0b0d0 /include/linux/phy/git:/ssh: | |
| parent | ASoC: SOF: ipc3: Remove the ipc3-ops.h header file (diff) | |
| download | linux-dev-43556516fffe1d2be2d4a73cfe7cd34d6062dd11.tar.xz linux-dev-43556516fffe1d2be2d4a73cfe7cd34d6062dd11.zip | |
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 'include/linux/phy/git:/ssh:')
0 files changed, 0 insertions, 0 deletions
