diff options
author | Ana Cabral <acabral@redhat.com> | 2022-05-05 11:52:40 +0200 |
---|---|---|
committer | Ana Cabral <acabral@redhat.com> | 2022-05-30 12:10:05 +0200 |
commit | 8da4910e67269dbf5ec7d22e83a5473baae574fc (patch) | |
tree | 752cba0d10e00421d1f3a4a44bfe2f0624deb621 | |
parent | 9d8a2d1ba057a42b852487461d1b7de5f71c0462 (diff) | |
download | NetworkManager-ac/platform.tar.gz |
Remove unused variableac/platform
'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.
-rw-r--r-- | src/libnm-platform/nm-linux-platform.c | 10 |
1 files changed, 1 insertions, 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 |