From 8da4910e67269dbf5ec7d22e83a5473baae574fc Mon Sep 17 00:00:00 2001 From: Ana Cabral Date: Thu, 5 May 2022 11:52:40 +0200 Subject: Remove unused variable 'nlh_seq_last_handled' variable is not used anywhere and was emitting bogus warnings on DEBUG level logs, due to not being initialized (but it is not used anywhere...). This commit removes it. --- src/libnm-platform/nm-linux-platform.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/libnm-platform/nm-linux-platform.c b/src/libnm-platform/nm-linux-platform.c index 40cb439692..36ad7c24ca 100644 --- a/src/libnm-platform/nm-linux-platform.c +++ b/src/libnm-platform/nm-linux-platform.c @@ -422,9 +422,7 @@ typedef struct { GSource *event_source; guint32 nlh_seq_next; -#if NM_MORE_LOGGING - guint32 nlh_seq_last_handled; -#endif + guint32 nlh_seq_last_seen; guint32 pruning[_REFRESH_ALL_TYPE_NUM]; @@ -7016,12 +7014,6 @@ event_seq_check(NMPlatform *platform, } } } - -#if NM_MORE_LOGGING - if (seq_number != priv->nlh_seq_last_handled) - _LOGt("netlink: recvmsg: unwaited sequence number %u", seq_number); - priv->nlh_seq_last_handled = seq_number; -#endif } static void -- cgit v1.2.1