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

Changeset 3123d2a in mainline for uspace/srv/hid/input/generic/input.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/generic/input.c

    r2f90b46 r3123d2a  
    662662        async_set_client_connection(client_connection);
    663663        int rc = loc_server_register(NAME);
    664         if (rc < 0) {
    665                 printf("%s: Unable to register server (%d)\n", NAME, rc);
    666                 return -1;
     664        if (rc != EOK) {
     665                printf("%s: Unable to register server\n", NAME);
     666                return rc;
    667667        }
    668668       
     
    671671       
    672672        service_id_t service_id;
    673         if (loc_service_register(kbd, &service_id) != EOK) {
     673        rc = loc_service_register(kbd, &service_id);
     674        if (rc != EOK) {
    674675                printf("%s: Unable to register service %s\n", NAME, kbd);
    675                 return -1;
     676                return rc;
    676677        }
    677678       
Note: See TracChangeset for help on using the changeset viewer.