]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
efi: drop unused xmalloc0() 29617/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Oct 2023 08:56:45 +0000 (10:56 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 19 Oct 2023 10:24:53 +0000 (12:24 +0200)
Keeping this separate to make it easy to revert if it's ever needed again.

src/boot/efi/util.h

index 17215bb81a1d59ecdc2d6f9929600c6516c75fad..aef831d1327f6548e4eebe505d99b0160007918b 100644 (file)
@@ -35,12 +35,6 @@ static inline void *xmalloc(size_t size) {
         return p;
 }
 
-#define xmalloc0(size)                                  \
-        ({                                              \
-                size_t _size_ = (size);                 \
-                memzero(xmalloc(_size_), _size_);       \
-        })
-
 _malloc_ _alloc_(1, 2) _returns_nonnull_ _warn_unused_result_
 static inline void *xmalloc_multiply(size_t size, size_t n) {
         assert_se(!__builtin_mul_overflow(size, n, &size));