We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 060e4b0 + 6df849c commit 57383f3Copy full SHA for 57383f3
drivers/hid/intel-ish-hid/ishtp/client.c
@@ -841,7 +841,6 @@ void recv_ishtp_cl_msg(struct ishtp_device *dev,
841
unsigned char *buffer = NULL;
842
struct ishtp_cl_rb *complete_rb = NULL;
843
unsigned long flags;
844
- int rb_count;
845
846
if (ishtp_hdr->reserved) {
847
dev_err(dev->devc, "corrupted message header.\n");
@@ -855,9 +854,7 @@ void recv_ishtp_cl_msg(struct ishtp_device *dev,
855
854
}
856
857
spin_lock_irqsave(&dev->read_list_spinlock, flags);
858
- rb_count = -1;
859
list_for_each_entry(rb, &dev->read_list.list, list) {
860
- ++rb_count;
861
cl = rb->cl;
862
if (!cl || !(cl->host_client_id == ishtp_hdr->host_addr &&
863
cl->fw_client_id == ishtp_hdr->fw_addr) ||
0 commit comments