Skip to content

Commit

Permalink
Staging: et131x: list usage cleanup
Browse files Browse the repository at this point in the history
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: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Eric Sesterhenn authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent e68f284 commit c9a312f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/et131x/et1310_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,7 @@ void et131x_reset_recv(struct et131x_adapter *pAdapter)

pMpRfd = (PMP_RFD) list_entry(element, MP_RFD, list_node);

list_del(&pMpRfd->list_node);
list_add_tail(&pMpRfd->list_node, &pAdapter->RxRing.RecvList);
list_move_tail(&pMpRfd->list_node, &pAdapter->RxRing.RecvList);
}

DBG_LEAVE(et131x_dbginfo);
Expand Down

0 comments on commit c9a312f

Please sign in to comment.