Ignore:
Timestamp:
2011-01-06T23:23:53Z (14 years ago)
Author:
martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7922dea
Parents:
e3fe7df
Message:

further code simplification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/dp8390/dp8390_module.c

    re3fe7df r66b628a  
    130130        fibril_rwlock_write_unlock(&netif_globals.lock);
    131131       
    132         if ((dep != NULL) && (dep->de_mode == DEM_ENABLED)) {
    133                 assert(dep->de_flags & DEF_ENABLED);
     132        if ((dep != NULL) && (dep->up)) {
     133                assert(dep->enabled);
    134134                dp_check_ints(nil_phone, device_id, dep, IRQ_GET_ISR(*call));
    135135        }
     
    233233        device->state = NETIF_STOPPED;
    234234        dep->de_irq = irq;
    235         dep->de_mode = DEM_DISABLED;
     235        dep->up = false;
    236236       
    237237        //TODO address?
     
    306306                        return rc;
    307307               
    308                 rc = do_init(dep, DL_BROAD_REQ);
     308                rc = do_init(dep);
    309309                if (rc != EOK) {
    310310                        ipc_unregister_irq(dep->de_irq, device->device_id);
Note: See TracChangeset for help on using the changeset viewer.