From 793d58b7ec18079c88d9b58d49fa4c3052c73324 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sun, 19 Sep 2004 01:28:54 +0000 Subject: [PATCH] cleanup syntax a bit. non functional changes. --- sys/dev/netif/cx/cx.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sys/dev/netif/cx/cx.c b/sys/dev/netif/cx/cx.c index 115277cb51..d74f58588a 100644 --- a/sys/dev/netif/cx/cx.c +++ b/sys/dev/netif/cx/cx.c @@ -16,7 +16,7 @@ * Version 1.9, Wed Oct 4 18:58:15 MSK 1995 * * $FreeBSD: src/sys/i386/isa/cx.c,v 1.45.2.1 2001/02/26 04:23:09 jlemon Exp $ - * $DragonFly: src/sys/dev/netif/cx/cx.c,v 1.13 2004/09/19 01:27:23 dillon Exp $ + * $DragonFly: src/sys/dev/netif/cx/cx.c,v 1.14 2004/09/19 01:28:54 dillon Exp $ * */ #undef DEBUG @@ -919,17 +919,18 @@ void cxmint (cx_chan_t *c) /* * Recover after lost transmit interrupts. */ -void cxtimeout (void *a) +void +cxtimeout (void *a) { cx_board_t *b; cx_chan_t *c; struct tty *tp; int s; - for (b=cxboard; bchan; cchan+NCHAN; ++c) { + for (b = cxboard; b < cxboard + NCX; ++b) { + for (c = b->chan; c < b->chan + NCHAN; ++c) { tp = c->ttyp; - if (c->type==T_NONE || c->mode!=M_ASYNC || !tp) + if (c->type == T_NONE || c->mode != M_ASYNC || !tp) continue; s = spltty (); if (tp->t_state & TS_BUSY) { @@ -941,6 +942,7 @@ void cxtimeout (void *a) } splx (s); } + } callout_reset (&cxtimeout_ch, hz * 5, cxtimeout, NULL); } -- 2.41.0