qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 05/11] audio/mixeng: use g_new0() instead of audio_calloc()


From: Richard Henderson
Subject: Re: [PATCH 05/11] audio/mixeng: use g_new0() instead of audio_calloc()
Date: Sun, 18 Dec 2022 12:56:42 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

On 12/18/22 09:15, Volker Rümelin wrote:
Replace audio_calloc() with the equivalent g_new0().

With a n_structs argument of 1, g_new0() never returns NULL.
Also remove the unnecessary NULL checks.

Signed-off-by: Volker Rümelin<vr_qemu@t-online.de>
---
  audio/audio.c          | 5 -----
  audio/audio_template.h | 6 +-----
  audio/mixeng.c         | 7 +------
  3 files changed, 2 insertions(+), 16 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]