ether8390: remove unused variables
This commit is contained in:
parent
6498ce3bf2
commit
7451bb405d
1 changed files with 2 additions and 4 deletions
|
@ -461,7 +461,6 @@ txstart(Ether* ether)
|
||||||
int len;
|
int len;
|
||||||
Dp8390 *ctlr;
|
Dp8390 *ctlr;
|
||||||
Block *bp;
|
Block *bp;
|
||||||
uchar minpkt[ETHERMINTU], *rp;
|
|
||||||
|
|
||||||
ctlr = ether->ctlr;
|
ctlr = ether->ctlr;
|
||||||
|
|
||||||
|
@ -480,11 +479,10 @@ txstart(Ether* ether)
|
||||||
* start the transmission.
|
* start the transmission.
|
||||||
*/
|
*/
|
||||||
len = BLEN(bp);
|
len = BLEN(bp);
|
||||||
rp = bp->rp;
|
|
||||||
if(ctlr->ram)
|
if(ctlr->ram)
|
||||||
memmove((uchar*)KADDR(ether->mem) + ctlr->tstart*Dp8390BufSz, rp, len);
|
memmove((uchar*)KADDR(ether->mem) + ctlr->tstart*Dp8390BufSz, bp->rp, len);
|
||||||
else
|
else
|
||||||
dp8390write(ctlr, ctlr->tstart*Dp8390BufSz, rp, len);
|
dp8390write(ctlr, ctlr->tstart*Dp8390BufSz, bp->rp, len);
|
||||||
freeb(bp);
|
freeb(bp);
|
||||||
|
|
||||||
regw(ctlr, Tbcr0, len & 0xFF);
|
regw(ctlr, Tbcr0, len & 0xFF);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue