basic/memory-util: do not "return" anything from memzero() macro

The macro is not used in expressions, so we don't need the ternary statement.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2019-05-30 22:55:32 +02:00
parent e7b93f97ed
commit 3135369cff
+2 -2
View File
@@ -37,8 +37,8 @@ static inline int memcmp_nn(const void *s1, size_t n1, const void *s2, size_t n2
#define memzero(x,l) \
({ \
size_t _l_ = (l); \
void *_x_ = (x); \
_l_ == 0 ? _x_ : memset(_x_, 0, _l_); \
if (_l_ > 0) \
memset(x, 0, _l_); \
})
#define zero(x) (memzero(&(x), sizeof(x)))