]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: echoaudio: Avoid non-standard macro usage
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 15:18:52 +0000 (16:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:47:43 +0000 (15:47 +0100)
commit263279e675564e51a7d7654742d1d7c101b6db36
tree65b8217561333b69f0ef24594d9942a1f5e219d8
parent425e734da7cfcbd05614adec59b38a1a52f9cb84
ALSA: echoaudio: Avoid non-standard macro usage

Pass the device pointer from the PCI pointer directly, instead of a
non-standard macro.  The macro didn't give any better readability.

Also slightly refactor the code (drop the return value check from the
preallocation) as it never returns an error.

Link: https://lore.kernel.org/r/20191105151856.10785-21-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/echoaudio/echoaudio.c