~ubuntu-bugs-auftrags-killer/qemu/proper-error-characters

« back to all changes in this revision

Viewing changes to qemu-tool.c

  • Committer: aliguori
  • Date: 2009-02-05 22:06:18 UTC
  • Revision ID: git-v1:1eec614b36390be66430ed6dd0ce47a6f2f0ae1a
toplevel: remove error handling from qemu_malloc() callers (Avi Kivity)

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6531 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    QEMUBH *bh;
44
44
 
45
45
    bh = qemu_malloc(sizeof(*bh));
46
 
    if (bh) {
47
 
        bh->cb = cb;
48
 
        bh->opaque = opaque;
49
 
    }
 
46
    bh->cb = cb;
 
47
    bh->opaque = opaque;
50
48
 
51
49
    return bh;
52
50
}