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.
This commit is contained in:
Ana Cabral 2022-05-05 11:52:40 +02:00
parent 9d8a2d1ba0
commit 8da4910e67

View file

@ -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