summaryrefslogtreecommitdiffstats
path: root/sys/dev/musycc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 20:39:28 +0000
committerphk <phk@FreeBSD.org>2003-05-31 20:39:28 +0000
commit568e2f76aafe03e246423969bb458de56ab7f30e (patch)
tree21e156b0d04958d5491009f8f6a081709e3b4616 /sys/dev/musycc
parenta13b77925e183911a396f4120aa200d7795b2227 (diff)
downloadFreeBSD-src-568e2f76aafe03e246423969bb458de56ab7f30e.zip
FreeBSD-src-568e2f76aafe03e246423969bb458de56ab7f30e.tar.gz
Remove unused variable(s).
Add /* FALLTHROUGH */ Found by: FlexeLint
Diffstat (limited to 'sys/dev/musycc')
-rw-r--r--sys/dev/musycc/musycc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/musycc/musycc.c b/sys/dev/musycc/musycc.c
index c13b79e..6d78dec 100644
--- a/sys/dev/musycc/musycc.c
+++ b/sys/dev/musycc/musycc.c
@@ -339,13 +339,11 @@ static LIST_HEAD(, csoftc) sc_list = LIST_HEAD_INITIALIZER(&sc_list);
static void
poke_847x(void *dummy)
{
- static int count;
int i;
struct csoftc *csc;
timeout(poke_847x, NULL, 1);
LIST_FOREACH(csc, &sc_list, list) {
- count++;
i = (csc->creg >> 24 & 0xf);
csc->creg &= ~0xf000000;
i++;
@@ -814,6 +812,7 @@ musycc_intr0(void *arg)
sc->chan[ch]->short_error++;
break;
}
+ /* FALLTHROUGH */
default:
musycc_intr0_tx_eom(sc, ch);
musycc_intr0_rx_eom(sc, ch);
@@ -1094,14 +1093,13 @@ musycc_rcvdata(hook_p hook, item_p item)
struct csoftc *csc;
struct schan *sch;
struct mdesc *md, *md0;
- u_int32_t ch, u, u0, len;
+ u_int32_t u, u0, len;
struct mbuf *m2;
struct mbuf *m;
sch = NG_HOOK_PRIVATE(hook);
sc = sch->sc;
csc = sc->csc;
- ch = sch->chan;
if (csc->state != C_RUNNING) {
printf("csc->state = %d\n", csc->state);
OpenPOWER on IntegriCloud