Changeset af7e3d3 in mainline


Ignore:
Timestamp:
2012-04-25T15:38:42Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a8b8086
Parents:
fa18523
Message:

rtc: add some comments, cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    rfa18523 raf7e3d3  
    352352        fibril_mutex_unlock(&rtc->mutex);
    353353
     354        /* Try to normalize the content of the tm structure */
    354355        time_t r = mktime(t);
    355         if (r < 0)
    356                 return EINVAL;
    357 
    358         return EOK;
     356
     357        return r < 0 ? EINVAL : EOK;
    359358}
    360359
     
    375374        rtc_t *rtc = RTC_FROM_FNODE(fun);
    376375
     376        /* Try to normalize the content of the tm structure */
    377377        if (mktime(t) < 0)
    378378                return EINVAL;
Note: See TracChangeset for help on using the changeset viewer.