From 6e98ddf825ce04c8d5514c0a1085c4649ee3aca5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 17 Oct 2023 10:56:45 +0200 Subject: [PATCH] efi: drop unused xmalloc0() Keeping this separate to make it easy to revert if it's ever needed again. --- src/boot/efi/util.h | 6 ------ 1 file changed, 6 deletions(-) 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)); -- 2.47.3