diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-08-21 15:27:29 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-08-29 07:36:19 (GMT) |
commit | 67c0fe420ea716268b761de72ef0420b7b02bc96 (patch) | |
tree | e718619fea34cb2a86999c866a08a53f7f3216fd | |
parent | 8fb861fa0718c414f42588eb16eb81f1893c3522 (diff) | |
download | linux-67c0fe420ea716268b761de72ef0420b7b02bc96.tar.xz |
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>
-rw-r--r-- | drivers/hid/intel-ish-hid/ipc/ipc.c | 3 |
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 851029b..e2517c1 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); |