diff mbox series

[2/2] genl: remove 'msg' from l_genl_attr

Message ID 20220726163500.6171-2-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/2] genl: make l_genl_attr_recurse take a const pointer | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

James Prestwood July 26, 2022, 4:35 p.m. UTC
The original l_genl_msg object was never being used
---
 ell/genl.c | 2 --
 ell/genl.h | 1 -
 2 files changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/ell/genl.c b/ell/genl.c
index 2c873ef..4ed95df 100644
--- a/ell/genl.c
+++ b/ell/genl.c
@@ -1720,7 +1720,6 @@  LIB_EXPORT bool l_genl_attr_init(struct l_genl_attr *attr,
 	if (!NLA_OK(nla, len))
 		return false;
 
-	attr->msg = msg;
 	attr->data = NULL;
 	attr->len = 0;
 	attr->next_data = nla;
@@ -1773,7 +1772,6 @@  LIB_EXPORT bool l_genl_attr_recurse(const struct l_genl_attr *attr,
 	if (!nla)
 		return false;
 
-	nested->msg = attr->msg;
 	nested->data = NULL;
 	nested->len = 0;
 	nested->next_data = NLA_DATA(nla);
diff --git a/ell/genl.h b/ell/genl.h
index 42041fa..915bcf7 100644
--- a/ell/genl.h
+++ b/ell/genl.h
@@ -76,7 +76,6 @@  bool l_genl_request_family(struct l_genl *genl, const char *name,
 					l_genl_destroy_func_t destroy);
 
 struct l_genl_attr {
-	struct l_genl_msg *msg;
 	const void *data;
 	uint32_t len;
 	const void *next_data;