Ignore:
Timestamp:
2012-04-18T20:10:55Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a44b58c
Parents:
f4ebaf3c
Message:

rtc: fix CLOCK_DEV protocol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_clock_dev.c

    rf4ebaf3c rbfc5577a  
    9696                async_data_read_finalize(cid, NULL, 0);
    9797                async_answer_0(callid, rc);
     98                return;
    9899        }
    99100
    100101        /* The operation was successful */
    101102        async_data_read_finalize(cid, &t, sizeof(struct tm));
    102         async_answer_1(callid, EOK, rc);
     103        async_answer_0(callid, rc);
    103104}
    104105
     
    133134
    134135        rc = (*clock_dev_ops->time_set)(fun, &t);
    135         if (rc < 0) {
    136                 /* Some error occurred */
    137                 async_answer_0(callid, rc);
    138                 return;
    139         }
    140136
    141         async_answer_1(callid, EOK, rc);
     137        async_answer_0(callid, rc);
    142138}
    143139
Note: See TracChangeset for help on using the changeset viewer.