|
From: | Richard Henderson |
Subject: | Re: [PATCH 08/11] audio/audio_template: use g_new0() to replace audio_calloc() |
Date: | Sun, 18 Dec 2022 13:02:22 -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 >= 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_template.h | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
[Prev in Thread] | Current Thread | [Next in Thread] |