Skip to contentSkip to conversation

Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue

PATCH In review Jannik Becher 2 participants 2 messages Feb 21, 2016 – Feb 24, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue

Fixed a coding style issue.

---
 drivers/staging/rdma/hfi1/verbs_mcast.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rdma/hfi1/verbs_mcast.c +3 -3
index afc6b4c..c45d4b1 100644
@@ -140,11 +140,11 @@ struct hfi1_mcast *hfi1_mcast_find(struct hfi1_ibport *ibp, union ib_gid *mgid)
 
 		ret = memcmp(mgid->raw, mcast->mgid.raw,
 			     sizeof(union ib_gid));
-		if (ret < 0)
+		if (ret < 0) {
 			n = n->rb_left;
-		else if (ret > 0)
+		} else if (ret > 0) {
 			n = n->rb_right;
-		else {
+		} else {
 			atomic_inc(&mcast->refcount);
 			spin_unlock_irqrestore(&ibp->lock, flags);
 			goto bail;
Signature · 1 line
2.5.0
#1 lore raw
Quoted 17 lines · Jannik Becher

Fixed a coding style issue.

---
drivers/staging/rdma/hfi1/verbs_mcast.c | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/rdma/hfi1/verbs_mcast.c +0 -1
index afc6b4c..c45d4b1 100644
@@ -140,11 +140,11 @@ struct hfi1_mcast *hfi1_mcast_find(struct hfi1_ibport *ibp, union ib_gid *mgid)
 
 		ret = memcmp(mgid->raw, mcast->mgid.raw,
 			     sizeof(union ib_gid));
-		if (ret < 0)

drivers/staging/rdma/hfi1/verbs_mcast.c struct hfi1_mcast *hfi1_mcast_find(struct hfi1_ibport *ibp, union ib_gid *mgid) · line 150

Quoted 10 lines
drivers/staging/rdma/hfi1/verbs_mcast.c +3 -2
+		if (ret < 0) {
 			n = n->rb_left;
-		else if (ret > 0)
+		} else if (ret > 0) {
 			n = n->rb_right;
-		else {
+		} else {
 			atomic_inc(&mcast->refcount);
 			spin_unlock_irqrestore(&ibp->lock, flags);
 			goto bail;

Doug,

This has been taken care already when I moved the code to rdmavt. Patch is submitted in the midst of my other stuff for 4.6. See:
http://www.spinics.net/lists/linux-rdma/msg32802.html

-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html