From: James Prestwood <prestwoj@gmail.com>
To: ell@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH 2/2] genl: remove 'msg' from l_genl_attr
Date: Tue, 26 Jul 2022 09:35:00 -0700 [thread overview]
Message-ID: <20220726163500.6171-2-prestwoj@gmail.com> (raw)
In-Reply-To: <20220726163500.6171-1-prestwoj@gmail.com>
The original l_genl_msg object was never being used
---
ell/genl.c | 2 --
ell/genl.h | 1 -
2 files changed, 3 deletions(-)
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;
--
2.34.3
next prev parent reply other threads:[~2022-07-26 16:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-26 16:34 [PATCH 1/2] genl: make l_genl_attr_recurse take a const pointer James Prestwood
2022-07-26 16:35 ` James Prestwood [this message]
2022-07-26 17:08 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220726163500.6171-2-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=ell@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.