diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-02-06 12:01:48 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-02-06 18:37:29 +0100 |
commit | 62e94da3e9d8b991a467f376441a805c5d14c9c7 (patch) | |
tree | ef804c846360ebb274701abb4fcaabb2ef035bd7 /drivers/media/pci/solo6x10 | |
parent | 6c422436638af9f8240df71c53275c3d255c2170 (diff) | |
download | linux-stable-62e94da3e9d8b991a467f376441a805c5d14c9c7.tar.gz linux-stable-62e94da3e9d8b991a467f376441a805c5d14c9c7.tar.bz2 linux-stable-62e94da3e9d8b991a467f376441a805c5d14c9c7.zip |
media: Drop superfluous PCM preallocation error checks
snd_pcm_lib_preallocate_pages() and co always succeed, so the error
check is simply redundant. Drop it.
Acked-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/media/pci/solo6x10')
-rw-r--r-- | drivers/media/pci/solo6x10/solo6x10-g723.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/pci/solo6x10/solo6x10-g723.c b/drivers/media/pci/solo6x10/solo6x10-g723.c index 2cc05a9d57ac..a16242a9206f 100644 --- a/drivers/media/pci/solo6x10/solo6x10-g723.c +++ b/drivers/media/pci/solo6x10/solo6x10-g723.c @@ -360,13 +360,11 @@ static int solo_snd_pcm_init(struct solo_dev *solo_dev) ss; ss = ss->next, i++) sprintf(ss->name, "Camera #%d Audio", i); - ret = snd_pcm_lib_preallocate_pages_for_all(pcm, + snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, snd_dma_continuous_data(GFP_KERNEL), G723_PERIOD_BYTES * PERIODS, G723_PERIOD_BYTES * PERIODS); - if (ret < 0) - return ret; solo_dev->snd_pcm = pcm; |