diff options
author | Sascha Hauer <[email protected]> | 2022-05-02 15:13:35 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-05-04 15:31:19 +0100 |
commit | 43556516fffe1d2be2d4a73cfe7cd34d6062dd11 (patch) | |
tree | b5b5f847ac171b6652e778ff886c7c1023a0b0d0 /lib/mpi/mpi-sub-ui.c | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions