aboutsummaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorWei Yongjun2016-08-21 15:27:29 +0000
committerJiri Kosina2016-08-29 09:36:19 +0200
commit67c0fe420ea716268b761de72ef0420b7b02bc96 (patch)
treee718619fea34cb2a86999c866a08a53f7f3216fd /drivers/hid
parent8fb861fa0718c414f42588eb16eb81f1893c3522 (diff)
HID: intel-ish-hid: use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail(). Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/intel-ish-hid/ipc/ipc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hid/intel-ish-hid/ipc/ipc.c b/drivers/hid/intel-ish-hid/ipc/ipc.c
index 851029bf17bc..e2517c11e0ee 100644
--- a/drivers/hid/intel-ish-hid/ipc/ipc.c
+++ b/drivers/hid/intel-ish-hid/ipc/ipc.c
@@ -448,8 +448,7 @@ static int ish_fw_reset_handler(struct ishtp_device *dev)
spin_lock_irqsave(&dev->wr_processing_spinlock, flags);
list_for_each_entry_safe(processing, next,
&dev->wr_processing_list_head.link, link) {
- list_del(&processing->link);
- list_add_tail(&processing->link, &dev->wr_free_list_head.link);
+ list_move_tail(&processing->link, &dev->wr_free_list_head.link);
}
spin_unlock_irqrestore(&dev->wr_processing_spinlock, flags);