Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88554
b: refs/heads/master
c: 4dc51b3
h: refs/heads/master
v: v3
  • Loading branch information
Eli Cohen authored and Roland Dreier committed Apr 17, 2008
1 parent 77ea868 commit 6009345
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c83b5b1cb2b050c7a9054f330598df99c31abb98
refs/heads/master: 4dc51b32582d45cb7e8322d750ffe0e6d82b506d
12 changes: 3 additions & 9 deletions trunk/drivers/net/mlx4/mcg.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16])
}
index += dev->caps.num_mgms;

err = mlx4_READ_MCG(dev, index, mailbox);
if (err)
goto out;

memset(mgm, 0, sizeof *mgm);
memcpy(mgm->gid, gid, 16);
}
Expand Down Expand Up @@ -301,12 +297,10 @@ int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16])
mgm->qp[loc] = mgm->qp[i - 1];
mgm->qp[i - 1] = 0;

err = mlx4_WRITE_MCG(dev, index, mailbox);
if (err)
goto out;

if (i != 1)
if (i != 1) {
err = mlx4_WRITE_MCG(dev, index, mailbox);
goto out;
}

if (prev == -1) {
/* Remove entry from MGM */
Expand Down

0 comments on commit 6009345

Please sign in to comment.