From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Borislav Petkov <bp@alien8.de>, Colin King <colin.king@canonical.com>
Cc: Len Brown <lenb@kernel.org>, Tony Luck <tony.luck@intel.com>,
Tyler Baicar <tbaicar@codeaurora.org>,
Will Deacon <will.deacon@arm.com>,
linux-acpi@vger.kernel.org, kernel-janitors@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI / APEI: remove redundant variables len and node_len
Date: Wed, 06 Dec 2017 01:54:32 +0100 [thread overview]
Message-ID: <4133483.q48axFpL8f@aspire.rjw.lan> (raw)
In-Reply-To: <20171128105110.hrfe6nh7hzmo5p4f@pd.tnic>
On Tuesday, November 28, 2017 11:51:10 AM CET Borislav Petkov wrote:
> On Sun, Oct 15, 2017 at 10:24:54PM +0100, Colin King wrote:
> > From: Colin Ian King <colin.king@canonical.com>
> >
> > Variables len and node_len are redundant and can be removed. Cleans
> > up clang warning: node_len = GHES_ESTATUS_NODE_LEN(len);
> >
> > Signed-off-by: Colin Ian King <colin.king@canonical.com>
> > ---
> > drivers/acpi/apei/ghes.c | 3 ---
> > 1 file changed, 3 deletions(-)
> >
> > diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
> > index 3c3a37b8503b..f2e1049232c0 100644
> > --- a/drivers/acpi/apei/ghes.c
> > +++ b/drivers/acpi/apei/ghes.c
> > @@ -923,7 +923,6 @@ static void ghes_print_queued_estatus(void)
> > struct ghes_estatus_node *estatus_node;
> > struct acpi_hest_generic *generic;
> > struct acpi_hest_generic_status *estatus;
> > - u32 len, node_len;
> >
> > llnode = llist_del_all(&ghes_estatus_llist);
> > /*
> > @@ -935,8 +934,6 @@ static void ghes_print_queued_estatus(void)
> > estatus_node = llist_entry(llnode, struct ghes_estatus_node,
> > llnode);
> > estatus = GHES_ESTATUS_FROM_NODE(estatus_node);
> > - len = cper_estatus_len(estatus);
> > - node_len = GHES_ESTATUS_NODE_LEN(len);
> > generic = estatus_node->generic;
> > ghes_print_estatus(NULL, generic, estatus);
> > llnode = llnode->next;
>
> Reviewed-by: Borislav Petkov <bp@suse.de>
Patch applied, thanks!
prev parent reply other threads:[~2017-12-06 0:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-15 21:24 Colin King
2017-11-28 10:51 ` Borislav Petkov
2017-12-06 0:54 ` Rafael J. Wysocki [this message]
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=4133483.q48axFpL8f@aspire.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=bp@alien8.de \
--cc=colin.king@canonical.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tbaicar@codeaurora.org \
--cc=tony.luck@intel.com \
--cc=will.deacon@arm.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®