Mercurial > ecos
diff packages/io/eth/current/src/net/eth_drv.c @ 128:0c2b7be0d798 ecos-sw-2000-10-12
Merge from eCos master repository on 2000-10-12-08:46:24-BST
| author | jlarmour |
|---|---|
| date | Thu, 12 Oct 2000 20:31:43 +0000 |
| parents | 518f42066aba |
| children | eb9fd8c04db3 |
line wrap: on
line diff
--- a/packages/io/eth/current/src/net/eth_drv.c +++ b/packages/io/eth/current/src/net/eth_drv.c @@ -730,9 +730,8 @@ void eth_drv_run_deliveries( void ) cyg_netdevtab_entry_t *t; for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) { struct eth_drv_sc *sc = (struct eth_drv_sc *)t->device_instance; - int state = sc->state; - sc->state &=~ETH_DRV_NEEDS_DELIVERY; - if ( ETH_DRV_NEEDS_DELIVERY & state ) { + if ( ETH_DRV_NEEDS_DELIVERY & sc->state ) { + sc->state &=~ETH_DRV_NEEDS_DELIVERY; (*sc->funs->deliver)(sc); } }
