Skip to contentSkip to conversation

ALSA: remove unused functions

PATCH New Adrian Bunk 1 participant 3 messages Oct 28, 2004 – Oct 29, 2004 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: remove unused functions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The patch below removes two unused ALSA functions.

diffstat output:

 sound/pci/cmipci.c             |    7 +------
 sound/pci/ymfpci/ymfpci_main.c |    5 -----
 2 files changed, 1 insertion(+), 11 deletions(-)

- --- linux-2.6.10-rc1-mm1-full/sound/pci/cmipci.c.old 2004-10-28 23:48:17.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/sound/pci/cmipci.c 2004-10-28 23:48:38.000000000 +0200
@@ -499,17 +499,12 @@
return inw(cm->iobase + cmd);
}

- -/* read/write operations for byte register */
+/* write operation for byte register */
inline static void snd_cmipci_write_b(cmipci_t *cm, unsigned int cmd, unsigned char data) {
outb(data, cm->iobase + cmd);
}

- -inline static unsigned char snd_cmipci_read_b(cmipci_t *cm, unsigned int cmd)
- -{
- - return inb(cm->iobase + cmd);
- -}
- -
/* bit operations for dword register */
static void snd_cmipci_set_bit(cmipci_t *cm, unsigned int cmd, unsigned int flag) {
- --- linux-2.6.10-rc1-mm1-full/sound/pci/ymfpci/ymfpci_main.c.old 2004-10-28 23:49:00.000000000 +0200
+++ linux-2.6.10-rc1-mm1-full/sound/pci/ymfpci/ymfpci_main.c 2004-10-28 23:49:11.000000000 +0200
@@ -52,11 +52,6 @@

static void snd_ymfpci_irq_wait(ymfpci_t *chip);

- -static inline u8 snd_ymfpci_readb(ymfpci_t *chip, u32 offset)
- -{
- - return readb(chip->reg_area_virt + offset);
- -}
- -
static inline void snd_ymfpci_writeb(ymfpci_t *chip, u32 offset, u8 val) {
writeb(val, chip->reg_area_virt + offset);

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBgW31mfzqmE8StAARArTeAJ9lT46xFgZ6muJjWM5wxD9JYYwMswCeN49M ycYCKqQnXeVjf7cvX4fOsWA=
=U50D
-----END PGP SIGNATURE-----

#1 lore raw

PATCH 1/1 ALSA: remove unused functions

[ this time without the problems due to a digital signature... ]

The patch below removes two unused ALSA functions.

diffstat output:

 sound/pci/cmipci.c             |    7 +------
 sound/pci/ymfpci/ymfpci_main.c |    5 -----
 2 files changed, 1 insertion(+), 11 deletions(-)
sound/pci/cmipci.c renamed from sound/pci/cmipci.c.old +1 -6
@@ -499,17 +499,12 @@
 	return inw(cm->iobase + cmd);
 }
 
-/* read/write operations for byte register */
+/* write operations for byte register */
 inline static void snd_cmipci_write_b(cmipci_t *cm, unsigned int cmd, unsigned char data)
 {
 	outb(data, cm->iobase + cmd);
 }
 
-inline static unsigned char snd_cmipci_read_b(cmipci_t *cm, unsigned int cmd)
-{
-	return inb(cm->iobase + cmd);
-}
-
 /* bit operations for dword register */
 static void snd_cmipci_set_bit(cmipci_t *cm, unsigned int cmd, unsigned int flag)
 {
sound/pci/ymfpci/ymfpci_main.c renamed from sound/pci/ymfpci/ymfpci_main.c.old +0 -5
@@ -52,11 +52,6 @@
 
 static void snd_ymfpci_irq_wait(ymfpci_t *chip);
 
-static inline u8 snd_ymfpci_readb(ymfpci_t *chip, u32 offset)
-{
-	return readb(chip->reg_area_virt + offset);
-}
-
 static inline void snd_ymfpci_writeb(ymfpci_t *chip, u32 offset, u8 val)
 {
 	writeb(val, chip->reg_area_virt + offset);

-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/

#2 lore raw

PATCH 1/1 ALSA: remove unused functions

In reply to Adrian Bunk

[ this time without the problems due to a digital signature... ]

The patch below removes two unused ALSA functions.

diffstat output:

 sound/pci/cmipci.c             |    7 +------
 sound/pci/ymfpci/ymfpci_main.c |    5 -----
 2 files changed, 1 insertion(+), 11 deletions(-)
sound/pci/cmipci.c renamed from sound/pci/cmipci.c.old +1 -6
@@ -499,17 +499,12 @@
 	return inw(cm->iobase + cmd);
 }
 
-/* read/write operations for byte register */
+/* write operations for byte register */
 inline static void snd_cmipci_write_b(cmipci_t *cm, unsigned int cmd, unsigned char data)
 {
 	outb(data, cm->iobase + cmd);
 }
 
-inline static unsigned char snd_cmipci_read_b(cmipci_t *cm, unsigned int cmd)
-{
-	return inb(cm->iobase + cmd);
-}
-
 /* bit operations for dword register */
 static void snd_cmipci_set_bit(cmipci_t *cm, unsigned int cmd, unsigned int flag)
 {
sound/pci/ymfpci/ymfpci_main.c renamed from sound/pci/ymfpci/ymfpci_main.c.old +0 -5
@@ -52,11 +52,6 @@
 
 static void snd_ymfpci_irq_wait(ymfpci_t *chip);
 
-static inline u8 snd_ymfpci_readb(ymfpci_t *chip, u32 offset)
-{
-	return readb(chip->reg_area_virt + offset);
-}
-
 static inline void snd_ymfpci_writeb(ymfpci_t *chip, u32 offset, u8 val)
 {
 	writeb(val, chip->reg_area_virt + offset);