summaryrefslogtreecommitdiffstats
path: root/sound/spi
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-04 16:36:00 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-06 10:29:36 +0100
commit600bacfcd706b5820d172626bfa6347482b4946b (patch)
tree0682a9080e2e993806357c40c56bcb89ff8d4333 /sound/spi
parent1267e24fe749b04beca5a7f04ffa49d9d792adb0 (diff)
downloadlinux-600bacfcd706b5820d172626bfa6347482b4946b.tar.gz
linux-600bacfcd706b5820d172626bfa6347482b4946b.tar.bz2
linux-600bacfcd706b5820d172626bfa6347482b4946b.zip
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 <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/spi')
-rw-r--r--sound/spi/at73c213.c2
1 files changed, 1 insertions, 1 deletions
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: