Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: pdaudiocf: Drop superfluous GFP setup

The extra setup with GFP_DMA32 is superfluous for this driver. The
whole operation is a simple copy loop, and there is no memory address
restriction at all. Drop the useless GFP setup.

Link: https://lore.kernel.org/r/20220823115740.14123-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+1 -2
+1 -2
sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c
··· 257 257 return err; 258 258 259 259 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pdacf_pcm_capture_ops); 260 - snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, 261 - snd_dma_continuous_data(GFP_KERNEL | GFP_DMA32), 260 + snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 262 261 0, 0); 263 262 264 263 pcm->private_data = chip;