]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: function: printer: use list_move instead of list_del/list_add
authorBaokun Li <libaokun1@huawei.com>
Wed, 9 Jun 2021 07:06:12 +0000 (15:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jun 2021 09:11:30 +0000 (11:11 +0200)
commitb04462da778ffb99e8fe98fbb6336d269d406c08
tree743a14164a215c5d39ab54bb9d274273775f068f
parent7d70e616181ec44214460aa23951c280b4c9d2f3
usb: gadget: function: printer: use list_move instead of list_del/list_add

Using list_move() instead of list_del() + list_add().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Link: https://lore.kernel.org/r/20210609070612.1325044-1-libaokun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_printer.c