Browse Source

libnl-tiny: use fixed message size instead of using the page size

Simplifies the code and reduces size

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 8 năm trước cách đây
mục cha
commit
d5bcd0240a
1 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 6
      package/libs/libnl-tiny/src/msg.c

+ 1 - 6
package/libs/libnl-tiny/src/msg.c

@@ -166,12 +166,7 @@
 #include <netlink/msg.h>
 #include <linux/socket.h>
 
-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