From: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
To: Colin Ian King <colin.i.king@gmail.com>,
Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Even Xu <even.xu@intel.com>,
linux-input@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][V2] hid: intel-ish-hid: ishtp: remove variable rb_count
Date: Sat, 12 Nov 2022 08:10:30 -0800 [thread overview]
Message-ID: <a37a579768310cbf57069c0ea0015ecd6ba7c569.camel@linux.intel.com> (raw)
In-Reply-To: <20221020210219.45131-1-colin.i.king@gmail.com>
On Thu, 2022-10-20 at 22:02 +0100, Colin Ian King wrote:
> The variable rb_count is being incremented but it
> is never referenced, it is redundant and can be removed.
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
> V2: Fix commit message.
> ---
> drivers/hid/intel-ish-hid/ishtp/client.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/hid/intel-ish-hid/ishtp/client.c
> b/drivers/hid/intel-ish-hid/ishtp/client.c
> index df0a825694f5..2d92fc129ce4 100644
> --- a/drivers/hid/intel-ish-hid/ishtp/client.c
> +++ b/drivers/hid/intel-ish-hid/ishtp/client.c
> @@ -841,7 +841,6 @@ void recv_ishtp_cl_msg(struct ishtp_device *dev,
> unsigned char *buffer = NULL;
> struct ishtp_cl_rb *complete_rb = NULL;
> unsigned long flags;
> - int rb_count;
>
> if (ishtp_hdr->reserved) {
> dev_err(dev->devc, "corrupted message header.\n");
> @@ -855,9 +854,7 @@ void recv_ishtp_cl_msg(struct ishtp_device *dev,
> }
>
> spin_lock_irqsave(&dev->read_list_spinlock, flags);
> - rb_count = -1;
> list_for_each_entry(rb, &dev->read_list.list, list) {
> - ++rb_count;
> cl = rb->cl;
> if (!cl || !(cl->host_client_id == ishtp_hdr-
> >host_addr &&
> cl->fw_client_id == ishtp_hdr-
> >fw_addr) ||
next prev parent reply other threads:[~2022-11-12 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-20 21:02 [PATCH][V2] hid: intel-ish-hid: ishtp: remove variable rb_count Colin Ian King
2022-11-12 16:10 ` srinivas pandruvada [this message]
2022-11-14 16:25 ` Jiri Kosina
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=a37a579768310cbf57069c0ea0015ecd6ba7c569.camel@linux.intel.com \
--to=srinivas.pandruvada@linux.intel.com \
--cc=benjamin.tissoires@redhat.com \
--cc=colin.i.king@gmail.com \
--cc=even.xu@intel.com \
--cc=jikos@kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).