platform: cleanup event_handler_recvmsg() (rename event_valid_msg())

This commit is contained in:
Thomas Haller
2015-12-13 10:37:40 +01:00
parent 6ee868678b
commit ecdcfda0dd

View File

@@ -3278,11 +3278,10 @@ event_seq_check (NMPlatform *platform, struct nl_msg *msg)
* through the cache manager. In this case, nm-linux-platform serves as the * through the cache manager. In this case, nm-linux-platform serves as the
* cache manager instead of the one provided by libnl. * cache manager instead of the one provided by libnl.
*/ */
static int static void
event_notification (struct nl_msg *msg, gpointer user_data) event_valid_msg (NMPlatform *platform, struct nl_msg *msg)
{ {
NMPlatform *platform = NM_PLATFORM (user_data); NMLinuxPlatformPrivate *priv = NM_LINUX_PLATFORM_GET_PRIVATE (platform);
NMLinuxPlatformPrivate *priv = NM_LINUX_PLATFORM_GET_PRIVATE (user_data);
nm_auto_nmpobj NMPObject *obj = NULL; nm_auto_nmpobj NMPObject *obj = NULL;
nm_auto_nmpobj NMPObject *obj_cache = NULL; nm_auto_nmpobj NMPObject *obj_cache = NULL;
NMPCacheOpsType cache_op; NMPCacheOpsType cache_op;
@@ -3307,7 +3306,7 @@ event_notification (struct nl_msg *msg, gpointer user_data)
_LOGT ("event-notification: %s, seq %u: ignore", _LOGT ("event-notification: %s, seq %u: ignore",
_nl_nlmsg_type_to_str (msghdr->nlmsg_type, buf_nlmsg_type, sizeof (buf_nlmsg_type)), _nl_nlmsg_type_to_str (msghdr->nlmsg_type, buf_nlmsg_type, sizeof (buf_nlmsg_type)),
msghdr->nlmsg_seq); msghdr->nlmsg_seq);
return NL_OK; return;
} }
_LOGT ("event-notification: %s, seq %u: %s", _LOGT ("event-notification: %s, seq %u: %s",
@@ -3336,8 +3335,6 @@ event_notification (struct nl_msg *msg, gpointer user_data)
} }
cache_prune_candidates_drop (platform, obj_cache); cache_prune_candidates_drop (platform, obj_cache);
return NL_OK;
} }
/******************************************************************/ /******************************************************************/
@@ -5476,7 +5473,7 @@ continue_reading:
/* Valid message (not checking for MULTIPART bit to /* Valid message (not checking for MULTIPART bit to
* get along with broken kernels. NL_SKIP has no * get along with broken kernels. NL_SKIP has no
* effect on this. */ * effect on this. */
event_notification (msg, platform); event_valid_msg (platform, msg);
} }
skip: skip:
err = 0; err = 0;