aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qed/qed_spq.c
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-09-26 16:53:00 +0800
committerDavid S. Miller <davem@davemloft.net>2018-09-26 10:11:36 -0700
commit631e871edc768210d5d5716f5787e4f363c65352 (patch)
tree8f5239a55486050142e8350e2748119b9397dac7 /drivers/net/ethernet/qlogic/qed/qed_spq.c
parentMerge branch 'net-bridge-convert-bool-options-to-bits' (diff)
downloadlinux-dev-631e871edc768210d5d5716f5787e4f363c65352.tar.xz
linux-dev-631e871edc768210d5d5716f5787e4f363c65352.zip
net: qed: 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/qlogic/qed/qed_spq.c')
-rw-r--r--drivers/net/ethernet/qlogic/qed/qed_spq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_spq.c b/drivers/net/ethernet/qlogic/qed/qed_spq.c
index 1673fc90027f..c4a6274dd625 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_spq.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_spq.c
@@ -730,8 +730,7 @@ static int qed_spq_post_list(struct qed_hwfn *p_hwfn,
!list_empty(head)) {
struct qed_spq_entry *p_ent =
list_first_entry(head, struct qed_spq_entry, list);
- list_del(&p_ent->list);
- list_add_tail(&p_ent->list, &p_spq->completion_pending);
+ list_move_tail(&p_ent->list, &p_spq->completion_pending);
p_spq->comp_sent_count++;
rc = qed_spq_hw_post(p_hwfn, p_spq, p_ent);