* [PATCH] Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue
@ 2016-02-21 15:30 Jannik Becher
[not found] ` <1456068639-4745-1-git-send-email-Becher.Jannik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jannik Becher @ 2016-02-21 15:30 UTC (permalink / raw)
To: infinipath; +Cc: linux-rdma, devel, linux-kernel
Fixed a coding style issue.
Signed-off-by: Jannik Becher <Becher.Jannik@gmail.com>
---
drivers/staging/rdma/hfi1/verbs_mcast.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rdma/hfi1/verbs_mcast.c b/drivers/staging/rdma/hfi1/verbs_mcast.c
index afc6b4c..c45d4b1 100644
--- a/drivers/staging/rdma/hfi1/verbs_mcast.c
+++ b/drivers/staging/rdma/hfi1/verbs_mcast.c
@@ -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;
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue
[not found] ` <1456068639-4745-1-git-send-email-Becher.Jannik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-02-24 17:08 ` Dennis Dalessandro
0 siblings, 0 replies; 2+ messages in thread
From: Dennis Dalessandro @ 2016-02-24 17:08 UTC (permalink / raw)
To: Jannik Becher
Cc: infinipath-ral2JQCrhuEAvxtiuMwx3w,
linux-rdma-u79uwXL29TY76Z2rM5mHXA,
devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On Sun, Feb 21, 2016 at 04:30:39PM +0100, Jannik Becher wrote:
>Fixed a coding style issue.
>
>Signed-off-by: Jannik Becher <Becher.Jannik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>---
> drivers/staging/rdma/hfi1/verbs_mcast.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
>diff --git a/drivers/staging/rdma/hfi1/verbs_mcast.c b/drivers/staging/rdma/hfi1/verbs_mcast.c
>index afc6b4c..c45d4b1 100644
>--- a/drivers/staging/rdma/hfi1/verbs_mcast.c
>+++ b/drivers/staging/rdma/hfi1/verbs_mcast.c
>@@ -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;
>--
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-24 17:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 15:30 [PATCH] Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue Jannik Becher
[not found] ` <1456068639-4745-1-git-send-email-Becher.Jannik-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-02-24 17:08 ` Dennis Dalessandro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox