mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user