diff options
author | Jiri Kosina <jkosina@suse.cz> | 2022-12-13 14:34:43 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-12-13 14:34:43 +0100 |
commit | 57383f3c048d421e6dcc73aba43eef1c73142203 (patch) | |
tree | ba8eec2489c7e3e0963b97162890f0a3c3381473 /drivers/hid | |
parent | 060e4b066e53a5e988252bf9a3bebc5c5362ca93 (diff) | |
parent | 6df849caeb49e8975e815a6f906528b2da795fbd (diff) | |
download | linux-stable-57383f3c048d421e6dcc73aba43eef1c73142203.tar.gz linux-stable-57383f3c048d421e6dcc73aba43eef1c73142203.tar.bz2 linux-stable-57383f3c048d421e6dcc73aba43eef1c73142203.zip |
Merge branch 'for-6.2/intel-ish' into for-linus
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/intel-ish-hid/ishtp/client.c | 3 |
1 files changed, 0 insertions, 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) || |