Remove a redundant #ifdef _KERNEL.

Submitted by:	Sebastian Huber <sebastian.huber@embedded-brains.de>
MFC after:	3 days
This commit is contained in:
markj 2018-08-23 15:01:27 +00:00
parent 401e64920a
commit 482f290c9a

View File

@ -215,7 +215,6 @@ void *malloc(size_t size, struct malloc_type *type, int flags) __malloc_like
* an inline function variant ended up being compiled to a mere malloc call
* regardless of argument. gcc generates expected code (like the above).
*/
#ifdef _KERNEL
#define malloc(size, type, flags) ({ \
void *_malloc_item; \
size_t _size = (size); \
@ -230,7 +229,6 @@ void *malloc(size_t size, struct malloc_type *type, int flags) __malloc_like
} \
_malloc_item; \
})
#endif
void *malloc_domain(size_t size, struct malloc_type *type, int domain,
int flags) __malloc_like __result_use_check __alloc_size(1);