diff options
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_mcg.c')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_mcg.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_mcg.c b/drivers/infiniband/hw/mthca/mthca_mcg.c index 3f5f94879208..d4c81053e439 100644 --- a/drivers/infiniband/hw/mthca/mthca_mcg.c +++ b/drivers/infiniband/hw/mthca/mthca_mcg.c | |||
@@ -87,17 +87,7 @@ static int find_mgm(struct mthca_dev *dev, | |||
87 | } | 87 | } |
88 | 88 | ||
89 | if (0) | 89 | if (0) |
90 | mthca_dbg(dev, "Hash for %04x:%04x:%04x:%04x:" | 90 | mthca_dbg(dev, "Hash for %pI6 is %04x\n", gid, *hash); |
91 | "%04x:%04x:%04x:%04x is %04x\n", | ||
92 | be16_to_cpu(((__be16 *) gid)[0]), | ||
93 | be16_to_cpu(((__be16 *) gid)[1]), | ||
94 | be16_to_cpu(((__be16 *) gid)[2]), | ||
95 | be16_to_cpu(((__be16 *) gid)[3]), | ||
96 | be16_to_cpu(((__be16 *) gid)[4]), | ||
97 | be16_to_cpu(((__be16 *) gid)[5]), | ||
98 | be16_to_cpu(((__be16 *) gid)[6]), | ||
99 | be16_to_cpu(((__be16 *) gid)[7]), | ||
100 | *hash); | ||
101 | 91 | ||
102 | *index = *hash; | 92 | *index = *hash; |
103 | *prev = -1; | 93 | *prev = -1; |
@@ -264,16 +254,7 @@ int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) | |||
264 | goto out; | 254 | goto out; |
265 | 255 | ||
266 | if (index == -1) { | 256 | if (index == -1) { |
267 | mthca_err(dev, "MGID %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x " | 257 | mthca_err(dev, "MGID %pI6 not found\n", gid->raw); |
268 | "not found\n", | ||
269 | be16_to_cpu(((__be16 *) gid->raw)[0]), | ||
270 | be16_to_cpu(((__be16 *) gid->raw)[1]), | ||
271 | be16_to_cpu(((__be16 *) gid->raw)[2]), | ||
272 | be16_to_cpu(((__be16 *) gid->raw)[3]), | ||
273 | be16_to_cpu(((__be16 *) gid->raw)[4]), | ||
274 | be16_to_cpu(((__be16 *) gid->raw)[5]), | ||
275 | be16_to_cpu(((__be16 *) gid->raw)[6]), | ||
276 | be16_to_cpu(((__be16 *) gid->raw)[7])); | ||
277 | err = -EINVAL; | 258 | err = -EINVAL; |
278 | goto out; | 259 | goto out; |
279 | } | 260 | } |