Skip to content

Commit 57383f3

Browse files
author
Jiri Kosina
committed
Merge branch 'for-6.2/intel-ish' into for-linus
2 parents 060e4b0 + 6df849c commit 57383f3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/hid/intel-ish-hid/ishtp/client.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,6 @@ void recv_ishtp_cl_msg(struct ishtp_device *dev,
841841
unsigned char *buffer = NULL;
842842
struct ishtp_cl_rb *complete_rb = NULL;
843843
unsigned long flags;
844-
int rb_count;
845844

846845
if (ishtp_hdr->reserved) {
847846
dev_err(dev->devc, "corrupted message header.\n");
@@ -855,9 +854,7 @@ void recv_ishtp_cl_msg(struct ishtp_device *dev,
855854
}
856855

857856
spin_lock_irqsave(&dev->read_list_spinlock, flags);
858-
rb_count = -1;
859857
list_for_each_entry(rb, &dev->read_list.list, list) {
860-
++rb_count;
861858
cl = rb->cl;
862859
if (!cl || !(cl->host_client_id == ishtp_hdr->host_addr &&
863860
cl->fw_client_id == ishtp_hdr->fw_addr) ||

0 commit comments

Comments
 (0)