usb: cdns3: cdns3-gadget: Use list_move_tail instead of list_del/list_add_tail
authorBaokun Li <libaokun1@huawei.com>
Wed, 9 Jun 2021 07:27:20 +0000 (15:27 +0800)
committerPeter Chen <peter.chen@kernel.org>
Thu, 10 Jun 2021 14:16:50 +0000 (22:16 +0800)
commit33e99b65a13495247b4e35ec97ab82696c0fc6e0
tree6c89e2f3a558fe2644153775555d27a2a6aecbb5
parent3496993d06ffc77dff596bfbed966621e999b2e1
usb: cdns3: cdns3-gadget: Use list_move_tail instead of list_del/list_add_tail

Using list_move_tail() instead of list_del() + list_add_tail().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Link: https://lore.kernel.org/r/20210609072720.1358527-1-libaokun1@huawei.com
Signed-off-by: Peter Chen <peter.chen@kernel.org>
drivers/usb/cdns3/cdns3-gadget.c