Revision 1f51470d hw/baum.c

b/hw/baum.c
562 562
    g_free(baum);
563 563
}
564 564

  
565
int chr_baum_init(QemuOpts *opts, CharDriverState **_chr)
565
CharDriverState *chr_baum_init(QemuOpts *opts)
566 566
{
567 567
    BaumDriverState *baum;
568 568
    CharDriverState *chr;
......
614 614

  
615 615
    qemu_chr_generic_open(chr);
616 616

  
617
    *_chr = chr;
618
    return 0;
617
    return chr;
619 618

  
620 619
fail:
621 620
    qemu_free_timer(baum->cellCount_timer);
......
624 623
    g_free(handle);
625 624
    g_free(chr);
626 625
    g_free(baum);
627
    return -EIO;
626
    return NULL;
628 627
}

Also available in: Unified diff