platform/surface: aggregator: Use list_move_tail instead of list_del/list_add_tail...
authorBaokun Li <libaokun1@huawei.com>
Wed, 9 Jun 2021 07:24:48 +0000 (15:24 +0800)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Jun 2021 15:47:54 +0000 (17:47 +0200)
commitbe9c4fa236e24af5cc3271a16e209eab098566c4
tree07171702c91c9868aed7cace91adf63c2e00a83d
parenta8aedd45d7dd7d3b6136c90bd755cb68743d930e
platform/surface: aggregator: Use list_move_tail instead of list_del/list_add_tail in ssh_packet_layer.c

Using list_move_tail() instead of list_del() + list_add_tail() in ssh_packet_layer.c.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210609072448.1357524-1-libaokun1@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/aggregator/ssh_packet_layer.c