diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-11 04:40:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-12 08:04:08 -0400 |
commit | 3a918f4036f5c4689a091c2b9affcca2066803ee (patch) | |
tree | 303f693555b309c07291e262ba8bed616878678d | |
parent | 2e3a118f82a64f55a5cd0b44b6c00a884cad4ff9 (diff) | |
download | linux-3a918f4036f5c4689a091c2b9affcca2066803ee.tar.gz linux-3a918f4036f5c4689a091c2b9affcca2066803ee.tar.bz2 linux-3a918f4036f5c4689a091c2b9affcca2066803ee.zip |
bnx2x: use list_move instead of list_del/list_add
Using list_move() instead of list_del() + list_add().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c index df930e30e1b1..faadd153f7ad 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c @@ -557,8 +557,7 @@ static int bnx2x_vfop_config_list(struct bnx2x *bp, rc = bnx2x_config_vlan_mac(bp, vlan_mac); if (rc >= 0) { cnt += pos->add ? 1 : -1; - list_del(&pos->link); - list_add(&pos->link, &rollback_list); + list_move(&pos->link, &rollback_list); rc = 0; } else if (rc == -EEXIST) { rc = 0; |