From 0f201a7394f33f9346379a96f41f82654f6435cd Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Mon, 30 Aug 2021 14:05:19 -0500 Subject: [PATCH] wolfcrypt/types.h: revert change to WOLFSSL_LINUXKM XFREE() macro added in commit "remove frivolous semicolons at end of several macro definitions." --- wolfssl/wolfcrypt/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 5832b41c0..b1eba35c5 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -445,7 +445,7 @@ decouple library dependencies with standard string, memory and so on. #elif defined(WOLFSSL_LINUXKM) /* the requisite linux/slab.h is included in wc_port.h, with incompatible warnings masked out. */ #define XMALLOC(s, h, t) ({(void)(h); (void)(t); kmalloc(s, GFP_KERNEL);}) - #define XFREE(p, h, t) {void* _xp; (void)(h); _xp = (p); if(_xp) kfree(_xp);} + #define XFREE(p, h, t) ({void* _xp; (void)(h); _xp = (p); if(_xp) kfree(_xp);}) #define XREALLOC(p, n, h, t) ({(void)(h); (void)(t); krealloc((p), (n), GFP_KERNEL);}) #elif !defined(MICRIUM_MALLOC) && !defined(EBSNET) \