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

Changeset 18ae0c8 in mainline


Ignore:
Timestamp:
2012-08-17T18:00:28Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
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.