From: Zbigniew Jędrzejewski-Szmek Date: Tue, 17 Oct 2023 08:56:45 +0000 (+0200) Subject: efi: drop unused xmalloc0() X-Git-Tag: v255-rc1~203^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F29617%2Fhead;p=thirdparty%2Fsystemd.git efi: drop unused xmalloc0() Keeping this separate to make it easy to revert if it's ever needed again. --- diff --git a/src/boot/efi/util.h b/src/boot/efi/util.h index 17215bb81a1..aef831d1327 100644 --- a/src/boot/efi/util.h +++ b/src/boot/efi/util.h @@ -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));