未验证 提交 33e99b65 编写于 作者: B Baokun Li 提交者: Peter Chen

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: NHulk Robot <hulkci@huawei.com>
Signed-off-by: NBaokun Li <libaokun1@huawei.com>
Link: https://lore.kernel.org/r/20210609072720.1358527-1-libaokun1@huawei.comSigned-off-by: NPeter Chen <peter.chen@kernel.org>
上级 3496993d
...@@ -430,9 +430,7 @@ static int cdns3_start_all_request(struct cdns3_device *priv_dev, ...@@ -430,9 +430,7 @@ static int cdns3_start_all_request(struct cdns3_device *priv_dev,
if (ret) if (ret)
return ret; return ret;
list_del(&request->list); list_move_tail(&request->list, &priv_ep->pending_req_list);
list_add_tail(&request->list,
&priv_ep->pending_req_list);
if (request->stream_id != 0 || (priv_ep->flags & EP_TDLCHK_EN)) if (request->stream_id != 0 || (priv_ep->flags & EP_TDLCHK_EN))
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册