Changeset 18ae0c8 in mainline for uspace/drv/bus/isa/isa.c


Ignore:
Timestamp:
2012-08-17T18:00:28Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d7eb0f
Parents:
b5f305b
Message:

isa: Get rid of double NULL check.

Both fun_conf_parse and free are NULL safe.

File:
1 edited

Legend:

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

    rb5f305b r18ae0c8  
    573573static void isa_functions_add(isa_bus_t *isa)
    574574{
    575         char *fun_conf;
    576 
    577         fun_conf = fun_conf_read(CHILD_FUN_CONF_PATH);
    578         if (fun_conf != NULL) {
    579                 fun_conf_parse(fun_conf, isa);
    580                 free(fun_conf);
    581         }
     575        char *fun_conf = fun_conf_read(CHILD_FUN_CONF_PATH);
     576        fun_conf_parse(fun_conf, isa);
     577        free(fun_conf);
    582578}
    583579
Note: See TracChangeset for help on using the changeset viewer.