summaryrefslogtreecommitdiffstats
path: root/sound/pci/ymfpci/ymfpci_main.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-03-18 09:27:08 -0400
committerTakashi Iwai <tiwai@suse.de>2023-03-19 09:10:41 +0100
commit0b40261256a71184c6bca487b91e6b748b077709 (patch)
tree9844e30b3124b1160f53e446d8f18904560336fa /sound/pci/ymfpci/ymfpci_main.c
parentce8e5f202f3e73258dc35d217208c1dd7dc648d3 (diff)
downloadlinux-stable-0b40261256a71184c6bca487b91e6b748b077709.tar.gz
linux-stable-0b40261256a71184c6bca487b91e6b748b077709.tar.bz2
linux-stable-0b40261256a71184c6bca487b91e6b748b077709.zip
ALSA: ymfpci: remove unused snd_ymfpci_readb function
clang with W=1 reports sound/pci/ymfpci/ymfpci_main.c:34:18: error: unused function 'snd_ymfpci_readb' [-Werror,-Wunused-function] static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) ^ This static function is not used, so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Link: https://lore.kernel.org/r/20230318132708.1684504-1-trix@redhat.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ymfpci/ymfpci_main.c')
-rw-r--r--sound/pci/ymfpci/ymfpci_main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c
index c80114c0ad7b..2858736ed20a 100644
--- a/sound/pci/ymfpci/ymfpci_main.c
+++ b/sound/pci/ymfpci/ymfpci_main.c
@@ -31,11 +31,6 @@
static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip);
-static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset)
-{
- return readb(chip->reg_area_virt + offset);
-}
-
static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val)
{
writeb(val, chip->reg_area_virt + offset);