[libvirt PATCH 13/21] util: Remove VIR_ALLOC_N_QUIET

Tim Wiederhake posted 21 patches 5 years, 5 months ago
There is a newer version of this series
[libvirt PATCH 13/21] util: Remove VIR_ALLOC_N_QUIET
Posted by Tim Wiederhake 5 years, 5 months ago
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
---
 src/util/viralloc.h | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/util/viralloc.h b/src/util/viralloc.h
index ae967f2556..c60148724d 100644
--- a/src/util/viralloc.h
+++ b/src/util/viralloc.h
@@ -90,21 +90,6 @@ void virDisposeString(char **strptr)
  */
 #define VIR_ALLOC_N(ptr, count) virAllocN(&(ptr), sizeof(*(ptr)), (count))
 
-/**
- * VIR_ALLOC_N_QUIET:
- * @ptr: pointer to hold address of allocated memory
- * @count: number of elements to allocate
- *
- * Allocate an array of 'count' elements, each sizeof(*ptr)
- * bytes long and store the address of allocated memory in
- * 'ptr'. Fill the newly allocated memory with zeros.
- *
- * This macro is safe to use on arguments with side effects.
- *
- * Returns 0 on success, aborts on OOM
- */
-#define VIR_ALLOC_N_QUIET(ptr, count) VIR_ALLOC_N(ptr, count)
-
 /**
  * VIR_REALLOC_N:
  * @ptr: pointer to hold address of allocated memory
-- 
2.26.2

Re: [libvirt PATCH 13/21] util: Remove VIR_ALLOC_N_QUIET
Posted by Ján Tomko 5 years, 5 months ago
On a Friday in 2020, Tim Wiederhake wrote:
>Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
>---
> src/util/viralloc.h | 15 ---------------
> 1 file changed, 15 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko@redhat.com>

Jano