]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
remove some useless code from genl
authorJohannes Berg <johannes@sipsolutions.net>
Sun, 26 Oct 2008 08:58:35 +0000 (09:58 +0100)
committerJohannes Berg <johannes@sipsolutions.net>
Sun, 26 Oct 2008 08:58:35 +0000 (09:58 +0100)
genl.c

diff --git a/genl.c b/genl.c
index 0dff6221d8f9c65cd688839f0d2bc93150a67933..8f83d138d69cb6229c33d80c1a202a3036369c20 100644 (file)
--- a/genl.c
+++ b/genl.c
@@ -17,11 +17,6 @@ static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err,
        return NL_STOP;
 }
 
-static int finish_handler(struct nl_msg *msg, void *arg)
-{
-       return NL_SKIP;
-}
-
 static int ack_handler(struct nl_msg *msg, void *arg)
 {
        int *ret = arg;
@@ -102,7 +97,6 @@ int nl_get_multicast_id(struct nl_handle *handle, const char *family, const char
        ret = 1;
 
        nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &ret);
-       nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, NULL);
        nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &ret);
        nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, family_handler, &grp);