Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Remove unused function following isaki-audio2 me...



details:   https://anonhg.NetBSD.org/src/rev/d801ed5109d0
branches:  trunk
changeset: 451262:d801ed5109d0
user:      maya <maya%NetBSD.org@localhost>
date:      Sun May 12 13:40:19 2019 +0000

description:
Remove unused function following isaki-audio2 merge.

Shows up when doing clang builds. From a.rin.

diffstat:

 sys/dev/pci/cmpci.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (40 lines):

diff -r 8ddbd33b6117 -r d801ed5109d0 sys/dev/pci/cmpci.c
--- a/sys/dev/pci/cmpci.c       Sun May 12 11:55:47 2019 +0000
+++ b/sys/dev/pci/cmpci.c       Sun May 12 13:40:19 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmpci.c,v 1.54 2019/05/08 13:40:18 isaki Exp $ */
+/*     $NetBSD: cmpci.c,v 1.55 2019/05/12 13:40:19 maya Exp $  */
 
 /*
  * Copyright (c) 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.54 2019/05/08 13:40:18 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.55 2019/05/12 13:40:19 maya Exp $");
 
 #if defined(AUDIO_DEBUG) || defined(DEBUG)
 #define DPRINTF(x) if (cmpcidebug) printf x
@@ -92,7 +92,6 @@
 static inline void cmpci_reg_set_reg_misc(struct cmpci_softc *, uint32_t);
 static inline void cmpci_reg_clear_reg_misc(struct cmpci_softc *, uint32_t);
 static int cmpci_rate_to_index(int);
-static inline int cmpci_index_to_rate(int);
 static inline int cmpci_index_to_divider(int);
 
 static int cmpci_adjust(int, int);
@@ -329,13 +328,6 @@
 }
 
 static inline int
-cmpci_index_to_rate(int index)
-{
-
-       return cmpci_rate_table[index].rate;
-}
-
-static inline int
 cmpci_index_to_divider(int index)
 {
 



Home | Main Index | Thread Index | Old Index