]> git.droids-corp.org - dpdk.git/blobdiff - lib/eal/common/malloc_heap.h
eal: fix crash when allocating memory on a control thread
[dpdk.git] / lib / eal / common / malloc_heap.h
index 3a6ec6ecf03b7c10ebc03ce09fcc8e18f719f52e..3a29d024b4ca45f9fc941c59f5a2a3d72766db78 100644 (file)
@@ -33,17 +33,6 @@ struct malloc_heap {
        char name[RTE_HEAP_NAME_MAX_LEN];
 } __rte_cache_aligned;
 
-static inline unsigned
-malloc_get_numa_socket(void)
-{
-       unsigned socket_id = rte_socket_id();
-
-       if (socket_id == (unsigned)SOCKET_ID_ANY)
-               return 0;
-
-       return socket_id;
-}
-
 void *
 malloc_heap_alloc(const char *type, size_t size, int socket, unsigned int flags,
                size_t align, size_t bound, bool contig);