mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-25 11:04:01 +08:00
ALSA: parisc: Drop superfluous PCM preallocation error checks
snd_pcm_lib_preallocate_pages() and co always succeed, so the error check is simply redundant. Drop it. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e6e8c82b97
commit
f32e561600
@ -669,14 +669,8 @@ snd_harmony_pcm_init(struct snd_harmony *h)
|
||||
}
|
||||
|
||||
/* pre-allocate space for DMA */
|
||||
err = snd_pcm_lib_preallocate_pages_for_all(pcm, h->dma.type,
|
||||
h->dma.dev,
|
||||
MAX_BUF_SIZE,
|
||||
MAX_BUF_SIZE);
|
||||
if (err < 0) {
|
||||
printk(KERN_ERR PFX "buffer allocation error: %d\n", err);
|
||||
return err;
|
||||
}
|
||||
snd_pcm_lib_preallocate_pages_for_all(pcm, h->dma.type, h->dma.dev,
|
||||
MAX_BUF_SIZE, MAX_BUF_SIZE);
|
||||
|
||||
h->st.format = snd_harmony_set_data_format(h,
|
||||
SNDRV_PCM_FORMAT_S16_BE, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user