diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-05 22:05:58 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-02-05 22:05:58 +0000 |
commit | 090f1fa3237cbbc2338d29fe7ddb7d35396cddbb (patch) | |
tree | 349aa90760d5dee9e6f1ac7901ae3872d00c3ba1 /audio/wavcapture.c | |
parent | 3ec88e80365c889f824d9a171fbf197b46a7c03f (diff) | |
download | qemu-090f1fa3237cbbc2338d29fe7ddb7d35396cddbb.zip qemu-090f1fa3237cbbc2338d29fe7ddb7d35396cddbb.tar.gz qemu-090f1fa3237cbbc2338d29fe7ddb7d35396cddbb.tar.bz2 |
audio: 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@6528 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/wavcapture.c')
-rw-r--r-- | audio/wavcapture.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/audio/wavcapture.c b/audio/wavcapture.c index 9919171..6d1c441 100644 --- a/audio/wavcapture.c +++ b/audio/wavcapture.c @@ -120,11 +120,6 @@ int wav_start_capture (CaptureState *s, const char *path, int freq, ops.destroy = wav_destroy; wav = qemu_mallocz (sizeof (*wav)); - if (!wav) { - term_printf ("Could not allocate memory for wav capture (%zu bytes)", - sizeof (*wav)); - return -1; - } shift = bits16 + stereo; hdr[34] = bits16 ? 0x10 : 0x08; |