Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3123d2a in mainline for uspace/srv/hid/input/port/adb.c


Ignore:
Timestamp:
2012-06-01T19:26:32Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
520acaf, 85a4350, c573e0f, e1e4192
Parents:
2f90b46
Message:

trivial changes (error code reporting, messages)

File:
1 edited

Legend:

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

    r2f90b46 r3123d2a  
    6565static int adb_port_init(kbd_dev_t *kdev)
    6666{
     67        kbd_dev = kdev;
     68       
    6769        const char *dev = "adb/kbd";
    6870        service_id_t service_id;
    69         async_exch_t *exch;
    70         int rc;
    71        
    72         kbd_dev = kdev;
    73        
    74         rc = loc_service_get_id(dev, &service_id, 0);
     71        int rc = loc_service_get_id(dev, &service_id, 0);
    7572        if (rc != EOK)
    7673                return rc;
     
    8279        }
    8380       
    84         exch = async_exchange_begin(dev_sess);
     81        async_exch_t *exch = async_exchange_begin(dev_sess);
    8582        if (exch == NULL) {
    8683                printf("%s: Failed starting exchange with device\n", NAME);
     
    8986        }
    9087       
    91         /* NB: The callback connection is slotted for removal */
    9288        rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL);
    9389        async_exchange_end(exch);
Note: See TracChangeset for help on using the changeset viewer.