net: use NXRMUTEX_INITIALIZER for rmutex init

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-03-10 08:14:35 +08:00 committed by Petro Karashchenko
parent 443c4c46b0
commit fd9792b4bd

View file

@ -56,13 +56,13 @@
#ifdef CONFIG_ROUTE_IPv4_FILEROUTE
/* Used to lock a routing table for exclusive write-only access */
static rmutex_t g_ipv4_lock = RMUTEX_INITIALIZER;
static rmutex_t g_ipv4_lock = NXRMUTEX_INITIALIZER;
#endif
#ifdef CONFIG_ROUTE_IPv6_FILEROUTE
/* Used to lock a routing table for exclusive write-only access */
static rmutex_t g_ipv6_lock = RMUTEX_INITIALIZER;
static rmutex_t g_ipv6_lock = NXRMUTEX_INITIALIZER;
#endif
/****************************************************************************