Re: [PATCH v2 08/11] audio/audio_template: use g_new0() to replace audio_calloc()

2023-01-23 Thread Daniel P . Berrangé
On Sat, Jan 21, 2023 at 10:47:32AM +0100, 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 > --- > audio/audio_template.h | 2

[PATCH v2 08/11] audio/audio_template: use g_new0() to replace audio_calloc()

2023-01-21 Thread Volker Rümelin
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 --- audio/audio_template.h | 29 - 1 file changed, 12 insertions(+), 17 deletions(