diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-09-05 02:40:43 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-09-22 17:33:53 -0400 |
commit | 2636ff6b0df904cf1c982f580860204a386d177f (patch) | |
tree | d23c62b07218fe73d204ffc97681531030932df2 | |
parent | 012a1211845eab69a5488d59eb87d24cc518c627 (diff) |
vmlfb: use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail().
spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
-rw-r--r-- | drivers/video/vermilion/vermilion.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/vermilion/vermilion.c b/drivers/video/vermilion/vermilion.c index 970e43d13f52..083f0c844892 100644 --- a/drivers/video/vermilion/vermilion.c +++ b/drivers/video/vermilion/vermilion.c | |||
@@ -1168,8 +1168,7 @@ void vmlfb_unregister_subsys(struct vml_sys *sys) | |||
1168 | list_for_each_entry_safe(entry, next, &global_has_mode, head) { | 1168 | list_for_each_entry_safe(entry, next, &global_has_mode, head) { |
1169 | printk(KERN_DEBUG MODULE_NAME ": subsys disable pipe\n"); | 1169 | printk(KERN_DEBUG MODULE_NAME ": subsys disable pipe\n"); |
1170 | vmlfb_disable_pipe(entry); | 1170 | vmlfb_disable_pipe(entry); |
1171 | list_del(&entry->head); | 1171 | list_move_tail(&entry->head, &global_no_mode); |
1172 | list_add_tail(&entry->head, &global_no_mode); | ||
1173 | } | 1172 | } |
1174 | mutex_unlock(&vml_mutex); | 1173 | mutex_unlock(&vml_mutex); |
1175 | } | 1174 | } |