Skip to content

Commit 84bda90

Browse files
Wei Yongjungregkh
authored andcommitted
staging: wlags49_h2: use list_move instead of list_del/list_add
Using list_move() instead of list_del() + list_add(). spatch with a semantic match is used to found this problem. (http://coccinelle.lip6.fr/) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f0290de commit 84bda90

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/staging/wlags49_h2/wl_netdev.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -835,8 +835,7 @@ int wl_tx( struct sk_buff *skb, struct net_device *dev, int port )
835835
txF->frame.port = port;
836836
/* Move the frame to the txQ */
837837
/* NOTE: Here's where we would do priority queueing */
838-
list_del( &( txF->node ));
839-
list_add( &( txF->node ), &( lp->txQ[0] ));
838+
list_move(&(txF->node), &(lp->txQ[0]));
840839

841840
lp->txQ_count++;
842841
if( lp->txQ_count >= DEFAULT_NUM_TX_FRAMES ) {

0 commit comments

Comments
 (0)