Signed-off-by: Marcus R Epperson <[email protected]>
---
 src/ibqueryerrors.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/ibqueryerrors.c b/src/ibqueryerrors.c
index 230f6b2..d37d268 100644
--- a/src/ibqueryerrors.c
+++ b/src/ibqueryerrors.c
@@ -426,17 +426,17 @@ static int print_results(ib_portid_t * portid, char 
*node_name,
                        summary.bad_nodes++;
                }
 
-               if (portnum == 0xFF)
+               if (portnum == 0xFF) {
                        if (node->type == IB_NODE_SWITCH)
                                printf("   GUID 0x%" PRIx64 " port ALL:%s\n",
                                       node->ports[0]->guid, str);
-               else
+               } else {
                        printf("   GUID 0x%" PRIx64 " port %d:%s\n",
                               node->ports[portnum]->guid, portnum, str);
-               if (portnum != 0xFF && port_config)
-                       print_port_config(node_name, node, portnum);
-
-               summary.bad_ports++;
+                       if (port_config)
+                               print_port_config(node_name, node, portnum);
+                       summary.bad_ports++;
+               }
        }
        return (n);
 }
-- 
1.7.4.1

--
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

Reply via email to