Have ibv_modify_qp() return right value when ibv_query_port() fails

When the ibv_query_port() call made by mlx4_modify_qp() fails, the
return value from the latter should indicate the error status of the
former and not simply -1.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
diff --git a/src/verbs.c b/src/verbs.c
index 443ba9d..7c5ee53 100644
--- a/src/verbs.c
+++ b/src/verbs.c
@@ -528,8 +528,10 @@
 	int ret;
 
 	if (attr_mask & IBV_QP_PORT) {
-		if (ibv_query_port(qp->pd->context, attr->port_num, &port_attr))
-			return -1;
+		ret = ibv_query_port(qp->pd->context, attr->port_num,
+				     &port_attr);
+		if (ret)
+			return ret;
 		mqp->link_layer = port_attr.link_layer;
 	}