platform/surface: aggregator: Use list_move_tail instead of list_del/list_add_tail...
authorBaokun Li <libaokun1@huawei.com>
Wed, 9 Jun 2021 07:26:38 +0000 (15:26 +0800)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Jun 2021 15:47:54 +0000 (17:47 +0200)
commita8aedd45d7dd7d3b6136c90bd755cb68743d930e
tree98016f70cb9a05e613934425936fff99b5fd03e7
parentf9e7f9a2b2a0d76c03ebdbb8ffc7940017b326b9
platform/surface: aggregator: Use list_move_tail instead of list_del/list_add_tail in ssh_request_layer.c

Using list_move_tail() instead of list_del() + list_add_tail() in ssh_request_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/20210609072638.1358174-1-libaokun1@huawei.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/aggregator/ssh_request_layer.c