提交 c9a312f1 编写于 作者: E Eric Sesterhenn 提交者: Greg Kroah-Hartman

Staging: et131x: list usage cleanup

Trivial cleanup, list_del(); list_add_tail() is equivalent
to list_move_tail(). Semantic patch for coccinelle can be
found at www.cccmz.de/~snakebyte/list_move_tail.spatch
Signed-off-by: NEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 e68f2849
...@@ -1203,8 +1203,7 @@ void et131x_reset_recv(struct et131x_adapter *pAdapter) ...@@ -1203,8 +1203,7 @@ void et131x_reset_recv(struct et131x_adapter *pAdapter)
pMpRfd = (PMP_RFD) list_entry(element, MP_RFD, list_node); pMpRfd = (PMP_RFD) list_entry(element, MP_RFD, list_node);
list_del(&pMpRfd->list_node); list_move_tail(&pMpRfd->list_node, &pAdapter->RxRing.RecvList);
list_add_tail(&pMpRfd->list_node, &pAdapter->RxRing.RecvList);
} }
DBG_LEAVE(et131x_dbginfo); DBG_LEAVE(et131x_dbginfo);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册