diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-07-02 05:40:28 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-07-17 09:52:13 -0400 |
commit | 7f342e9c61d7932b7b3dd8a0b9c2768fe7ca3436 (patch) | |
tree | 7d3bdb373c476468cd95dee79c0000eeb62cfb52 | |
parent | f49255e00c2e085b1467087d2dbb6b01d7042cc8 (diff) |
HID: intel-ish-hid: remove redundant variable num_frags
Variable num_frags is being assigned but is never used hence it is
redundant and can be removed.
Cleans up clang warning:
warning: variable 'num_frags' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/hid/intel-ish-hid/ishtp/hbm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/intel-ish-hid/ishtp/hbm.c b/drivers/hid/intel-ish-hid/ishtp/hbm.c index ae4a69f7f2f4..8b5dd580ceec 100644 --- a/drivers/hid/intel-ish-hid/ishtp/hbm.c +++ b/drivers/hid/intel-ish-hid/ishtp/hbm.c | |||
@@ -298,7 +298,6 @@ int ishtp_hbm_cl_flow_control_req(struct ishtp_device *dev, | |||
298 | struct ishtp_msg_hdr *ishtp_hdr = &hdr; | 298 | struct ishtp_msg_hdr *ishtp_hdr = &hdr; |
299 | const size_t len = sizeof(struct hbm_flow_control); | 299 | const size_t len = sizeof(struct hbm_flow_control); |
300 | int rv; | 300 | int rv; |
301 | unsigned int num_frags; | ||
302 | unsigned long flags; | 301 | unsigned long flags; |
303 | 302 | ||
304 | spin_lock_irqsave(&cl->fc_spinlock, flags); | 303 | spin_lock_irqsave(&cl->fc_spinlock, flags); |
@@ -314,7 +313,6 @@ int ishtp_hbm_cl_flow_control_req(struct ishtp_device *dev, | |||
314 | return 0; | 313 | return 0; |
315 | } | 314 | } |
316 | 315 | ||
317 | num_frags = cl->recv_msg_num_frags; | ||
318 | cl->recv_msg_num_frags = 0; | 316 | cl->recv_msg_num_frags = 0; |
319 | 317 | ||
320 | rv = ishtp_write_message(dev, ishtp_hdr, data); | 318 | rv = ishtp_write_message(dev, ishtp_hdr, data); |