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

Changeset 0d7eb0f in mainline


Ignore:
Timestamp:
2012-08-17T18:01:07Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
cf56332
Parents:
18ae0c8
Message:

isa: Inline fun_conf_parse.

It's just a one line loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    r18ae0c8 r0d7eb0f  
    564564}
    565565
    566 static void fun_conf_parse(char *conf, isa_bus_t *isa)
    567 {
     566static void isa_functions_add(isa_bus_t *isa)
     567{
     568        char *conf = fun_conf_read(CHILD_FUN_CONF_PATH);
    568569        while (conf != NULL && *conf != '\0') {
    569570                conf = isa_fun_read_info(conf, isa);
    570571        }
    571 }
    572 
    573 static void isa_functions_add(isa_bus_t *isa)
    574 {
    575         char *fun_conf = fun_conf_read(CHILD_FUN_CONF_PATH);
    576         fun_conf_parse(fun_conf, isa);
    577         free(fun_conf);
     572        free(conf);
    578573}
    579574
Note: See TracChangeset for help on using the changeset viewer.