Skip to content

Commit 6df849c

Browse files
ColinIanKingJiri Kosina
authored andcommitted
HID: intel-ish-hid: ishtp: remove variable rb_count
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 <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9c730fe commit 6df849c

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)