From: Takashi Iwai Date: Mon, 4 Feb 2019 15:36:00 +0000 (+0100) Subject: ALSA: spi: Drop superfluous PCM preallocation error checks X-Git-Tag: v5.1-rc1~22^2~35^2~13 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=600bacfcd706b5820d172626bfa6347482b4946b;p=uclinux-h8%2Flinux.git ALSA: spi: 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index 1ef52edeb538..8707e0108471 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c @@ -350,7 +350,7 @@ static int snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device) snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &at73c213_playback_ops); - retval = snd_pcm_lib_preallocate_pages_for_all(chip->pcm, + snd_pcm_lib_preallocate_pages_for_all(chip->pcm, SNDRV_DMA_TYPE_DEV, &chip->ssc->pdev->dev, 64 * 1024, 64 * 1024); out: