diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-08-21 17:27:29 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2016-08-29 09:36:19 +0200 |
commit | 67c0fe420ea716268b761de72ef0420b7b02bc96 (patch) | |
tree | e718619fea34cb2a86999c866a08a53f7f3216fd /drivers/hid/intel-ish-hid/ipc/ipc.c | |
parent | MAINTAINERS: Add Intel ISH (diff) | |
download | linux-67c0fe420ea716268b761de72ef0420b7b02bc96.tar.xz 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/ipc.c')
-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 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); |