Commit 1267e24f authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: sparc: 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: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2462bca0
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -2243,12 +2243,9 @@ static int snd_dbri_pcm(struct snd_card *card)
	pcm->info_flags = 0;
	strcpy(pcm->name, card->shortname);

	if ((err = snd_pcm_lib_preallocate_pages_for_all(pcm,
			SNDRV_DMA_TYPE_CONTINUOUS,
	snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS,
					      snd_dma_continuous_data(GFP_KERNEL),
			64 * 1024, 64 * 1024)) < 0)
		return err;

					      64 * 1024, 64 * 1024);
	return 0;
}