ref: 7451bb405d9e51965ce07d55f04f43dc45b6cef9
parent: 6498ce3bf29b5350975a0cd22bca8bcac19c4377
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Apr 4 11:55:48 EDT 2020
ether8390: remove unused variables
--- a/sys/src/9/pc/ether8390.c
+++ b/sys/src/9/pc/ether8390.c
@@ -461,7 +461,6 @@
int len;
Dp8390 *ctlr;
Block *bp;
- uchar minpkt[ETHERMINTU], *rp;
ctlr = ether->ctlr;
@@ -480,11 +479,10 @@
* start the transmission.
*/
len = BLEN(bp);
- rp = bp->rp;
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
- dp8390write(ctlr, ctlr->tstart*Dp8390BufSz, rp, len);
+ dp8390write(ctlr, ctlr->tstart*Dp8390BufSz, bp->rp, len);
freeb(bp);
regw(ctlr, Tbcr0, len & 0xFF);