diff options
author | zhong jiang <zhongjiang@huawei.com> | 2018-09-26 16:56:50 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-26 10:12:10 -0700 |
commit | 880e1b21115bb49e811352530017557ab692e934 (patch) | |
tree | 0dd596f53ee5e63891d788fbe70eda1043def1a8 /drivers/net/ethernet/cavium | |
parent | 631e871edc768210d5d5716f5787e4f363c65352 (diff) |
net: liquidio: list usage cleanup
Trival cleanup, list_move_tail will implement the same function that
list_del() + list_add_tail() will do. hence just replace them.
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium')
-rw-r--r-- | drivers/net/ethernet/cavium/liquidio/octeon_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.c b/drivers/net/ethernet/cavium/liquidio/octeon_device.c index 0f0275cd153e..ce8c3f818666 100644 --- a/drivers/net/ethernet/cavium/liquidio/octeon_device.c +++ b/drivers/net/ethernet/cavium/liquidio/octeon_device.c @@ -1044,8 +1044,7 @@ void octeon_delete_dispatch_list(struct octeon_device *oct) dispatch = &oct->dispatch.dlist[i].list; while (dispatch->next != dispatch) { temp = dispatch->next; - list_del(temp); - list_add_tail(temp, &freelist); + list_move_tail(temp, &freelist); } oct->dispatch.dlist[i].opcode = 0; |