Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/adb.c

    r3123d2a r9d58539  
    6565static int adb_port_init(kbd_dev_t *kdev)
    6666{
     67        const char *dev = "adb/kbd";
     68        service_id_t service_id;
     69        async_exch_t *exch;
     70        int rc;
     71       
    6772        kbd_dev = kdev;
    6873       
    69         const char *dev = "adb/kbd";
    70         service_id_t service_id;
    71         int rc = loc_service_get_id(dev, &service_id, 0);
     74        rc = loc_service_get_id(dev, &service_id, 0);
    7275        if (rc != EOK)
    7376                return rc;
     
    7982        }
    8083       
    81         async_exch_t *exch = async_exchange_begin(dev_sess);
     84        exch = async_exchange_begin(dev_sess);
    8285        if (exch == NULL) {
    8386                printf("%s: Failed starting exchange with device\n", NAME);
     
    8689        }
    8790       
     91        /* NB: The callback connection is slotted for removal */
    8892        rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL);
    8993        async_exchange_end(exch);
Note: See TracChangeset for help on using the changeset viewer.