Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus Drop unused (inline) function.



details:   https://anonhg.NetBSD.org/src/rev/198e433b6cad
branches:  trunk
changeset: 340832:198e433b6cad
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Oct 04 08:20:24 2015 +0000

description:
Drop unused (inline) function.

diffstat:

 sys/dev/sbus/stp4020.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (41 lines):

diff -r 739548cd10e7 -r 198e433b6cad sys/dev/sbus/stp4020.c
--- a/sys/dev/sbus/stp4020.c    Sun Oct 04 08:19:40 2015 +0000
+++ b/sys/dev/sbus/stp4020.c    Sun Oct 04 08:20:24 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stp4020.c,v 1.67 2012/10/27 17:18:37 chs Exp $ */
+/*     $NetBSD: stp4020.c,v 1.68 2015/10/04 08:20:24 joerg Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.67 2012/10/27 17:18:37 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.68 2015/10/04 08:20:24 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -152,7 +152,6 @@
 
 static int     stp4020_rd_sockctl(struct stp4020_socket *, int);
 static void    stp4020_wr_sockctl(struct stp4020_socket *, int, int);
-static int     stp4020_rd_winctl(struct stp4020_socket *, int, int);
 static void    stp4020_wr_winctl(struct stp4020_socket *, int, int, int);
 
 void   stp4020_delay(struct stp4020_softc *sc, unsigned int);
@@ -222,14 +221,6 @@
        bus_space_write_2(h->tag, h->regs, o, v);
 }
 
-static inline int
-stp4020_rd_winctl(struct stp4020_socket *h, int win, int idx)
-{
-       int o = (STP4020_SOCKREGS_SIZE * (h->sock)) +
-               (STP4020_WINREGS_SIZE * win) + idx;
-       return (bus_space_read_2(h->tag, h->regs, o));
-}
-
 static inline void
 stp4020_wr_winctl(struct stp4020_socket *h, int win, int idx, int v)
 {



Home | Main Index | Thread Index | Old Index