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. diff --git a/sys/i386/isa/if_sr.c b/sys/i386/isa/if_sr.c index 0bcc23b95bb9..66a7dd1d6792 100644 --- a/sys/i386/isa/if_sr.c +++ b/sys/i386/isa/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.