summaryrefslogtreecommitdiffstats
path: root/drivers/hid/intel-ish-hid/ipc
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-08-21 15:27:29 +0000
committerJiri Kosina <jkosina@suse.cz>2016-08-29 09:36:19 +0200
commit67c0fe420ea716268b761de72ef0420b7b02bc96 (patch)
treee718619fea34cb2a86999c866a08a53f7f3216fd /drivers/hid/intel-ish-hid/ipc
parent8fb861fa0718c414f42588eb16eb81f1893c3522 (diff)
downloadtalos-obmc-linux-67c0fe420ea716268b761de72ef0420b7b02bc96.tar.gz
talos-obmc-linux-67c0fe420ea716268b761de72ef0420b7b02bc96.zip
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/intel-ish-hid/ipc')
-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);
OpenPOWER on IntegriCloud