From d5bcd0240a8f42a05ef31005a9a9dea848d3f7a8 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 9 Nov 2017 14:39:48 +0100 Subject: libnl-tiny: use fixed message size instead of using the page size Simplifies the code and reduces size Signed-off-by: Felix Fietkau --- package/libs/libnl-tiny/src/msg.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'package/libs') diff --git a/package/libs/libnl-tiny/src/msg.c b/package/libs/libnl-tiny/src/msg.c index e84c281..b502047 100644 --- a/package/libs/libnl-tiny/src/msg.c +++ b/package/libs/libnl-tiny/src/msg.c @@ -166,12 +166,7 @@ #include #include -static size_t default_msg_size; - -static void __init init_msg_size(void) -{ - default_msg_size = getpagesize(); -} +static size_t default_msg_size = 4096; /** * @name Attribute Access -- cgit v1.1