Staging: et131x: list usage cleanup
authorEric Sesterhenn <snakebyte@gmx.de>
Wed, 11 Feb 2009 17:16:46 +0000 (18:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:28 +0000 (14:53 -0700)
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>
drivers/staging/et131x/et1310_rx.c

index ec98da5da5bc0363eeacab027a3da011bff27f4e..8dc559a77ad3300fcf11e4baca938bad940e3754 100644 (file)
@@ -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);