Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devmap/devmap.c

    r47a7174f r228e490  
    9999        /** Device driver handling this device */
    100100        devmap_driver_t *driver;
    101         /** Use this interface when forwarding to driver. */
    102         sysarg_t forward_interface;
    103101} devmap_device_t;
    104102
     
    519517        }
    520518       
    521         /* Set the interface, if any. */
    522         device->forward_interface = IPC_GET_ARG1(*icall);
    523 
    524519        /* Get fqdn */
    525520        char *fqdn;
     
    571566        /* Get unique device handle */
    572567        device->handle = devmap_create_handle();
    573 
     568       
    574569        devmap_namespace_addref(namespace, device);
    575570        device->driver = driver;
     
    622617        }
    623618       
    624         if (dev->forward_interface == 0) {
    625                 /* The IPC_GET_ARG3(*icall) would be always zero,
    626                  * wouldn't it? So why to pass it at all?
    627                  */
    628                 ipc_forward_fast(callid, dev->driver->phone,
    629                     dev->handle, 0, 0,
    630                     IPC_FF_NONE);
    631         } else {
    632                 ipc_forward_fast(callid, dev->driver->phone,
    633                     dev->forward_interface, dev->handle, 0,
    634                     IPC_FF_NONE);
    635         }
     619        ipc_forward_fast(callid, dev->driver->phone, dev->handle,
     620            IPC_GET_ARG3(*call), 0, IPC_FF_NONE);
    636621       
    637622        fibril_mutex_unlock(&devices_list_mutex);
Note: See TracChangeset for help on using the changeset viewer.