]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcxhr: "fix" PCXHR_REG_TO_PORT definition
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 14 Sep 2021 11:08:47 +0000 (14:08 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 16 Sep 2021 09:09:04 +0000 (11:09 +0200)
commitaa9140a3d02cff5f55c6fe8d7ba21baeb660fb8d
tree8b729b769a5aee0c4449b85a5d168b4050c57604
parentab86471b5d5814d095edbc53fdea12b57883b69a
ALSA: pcxhr: "fix" PCXHR_REG_TO_PORT definition

The following preprocessor directive is non-compliant:

#undef PCXHR_REG_TO_PORT(x)

gcc warns about extra tokens but nobody sees them as they are under if
branch which is never parsed.

Make it an #error, it is not clear to me what the author meant.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Link: https://lore.kernel.org/r/YUCCv47sm4zf9OVO@localhost.localdomain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/pcxhr/pcxhr_core.c