]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
mnlg: remove unnused mnlg_socket structure
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 26 Aug 2022 18:17:40 +0000 (11:17 -0700)
committerDavid Ahern <dsahern@kernel.org>
Thu, 1 Sep 2022 02:58:00 +0000 (20:58 -0600)
Commit 62ff25e51bb6 ("devlink: Use generic socket helpers from library")
removed all of the users of struct mnlg_socket, but didn't remove the
structure itself. Fix that.

Fixes: 62ff25e51bb6 ("devlink: Use generic socket helpers from library")
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
devlink/mnlg.c

index e6d92742c1502cf92bc5562cdd2abc7489561996..b2e0b8c0f274ab7acf4cc32df3dedc1f8607c346 100644 (file)
 #include "utils.h"
 #include "mnlg.h"
 
-struct mnlg_socket {
-       struct mnl_socket *nl;
-       char *buf;
-       uint32_t id;
-       uint8_t version;
-       unsigned int seq;
-};
-
 int mnlg_socket_send(struct mnlu_gen_socket *nlg, const struct nlmsghdr *nlh)
 {
        return mnl_socket_sendto(nlg->nl, nlh, nlh->nlmsg_len);