]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: rme: Avoid non-standard macro usage
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2019 15:18:54 +0000 (16:18 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Nov 2019 14:47:43 +0000 (15:47 +0100)
commit944ec9275721311c0d492d772171d20088f72e9b
tree7a3d2f36a9e7bc389586a0793fa17479f0a647ce
parent2dfab4a351665356f59236d08665b1aad2f1745a
ALSA: rme: 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.

Along with it, drop the unnecessary assignment before the
snd_dma_alloc_pages() call and simplify by returning the error code
directly.

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