aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sr
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-11-19 09:19:44 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-11-19 09:19:44 +0000
commit2045179917fc7916789083bc888c574b9f07c2b4 (patch)
tree8eb203c5f5816d910a306581ecebc377c3286f2e /sys/dev/sr
parentbb8f8c633e68a3167c89cd0a84f0673dc2dcb633 (diff)
Notes
Diffstat (limited to 'sys/dev/sr')
-rw-r--r--sys/dev/sr/if_sr.c2
-rw-r--r--sys/dev/sr/if_sr_isa.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c
index 0bcc23b95bb9..66a7dd1d6792 100644
--- a/sys/dev/sr/if_sr.c
+++ b/sys/dev/sr/if_sr.c
@@ -1160,7 +1160,6 @@ srstart(struct sr_softc *sc)
sca_descriptor *txdesc; /* working descriptor pointr */
struct buf_block *blkp;
- hc = sc->hc;
#ifndef NETGRAPH
#if BUGGY > 0
printf("sr: srstart( ifp=%08x)\n", ifp);
@@ -1169,6 +1168,7 @@ srstart(struct sr_softc *sc)
if ((ifp->if_flags & IFF_RUNNING) == 0)
return;
#endif /* NETGRAPH */
+ hc = sc->hc;
/*
* It is OK to set the memory window outside the loop because all tx
* buffers and descriptors are assumed to be in the same 16K window.
diff --git a/sys/dev/sr/if_sr_isa.c b/sys/dev/sr/if_sr_isa.c
index 0bcc23b95bb9..66a7dd1d6792 100644
--- a/sys/dev/sr/if_sr_isa.c
+++ b/sys/dev/sr/if_sr_isa.c
@@ -1160,7 +1160,6 @@ srstart(struct sr_softc *sc)
sca_descriptor *txdesc; /* working descriptor pointr */
struct buf_block *blkp;
- hc = sc->hc;
#ifndef NETGRAPH
#if BUGGY > 0
printf("sr: srstart( ifp=%08x)\n", ifp);
@@ -1169,6 +1168,7 @@ srstart(struct sr_softc *sc)
if ((ifp->if_flags & IFF_RUNNING) == 0)
return;
#endif /* NETGRAPH */
+ hc = sc->hc;
/*
* It is OK to set the memory window outside the loop because all tx
* buffers and descriptors are assumed to be in the same 16K window.