]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/ipoib: Remove redudant label
authorZhu Yanjun <yanjun.zhu@oracle.com>
Tue, 14 Feb 2017 08:43:12 +0000 (03:43 -0500)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:18:46 +0000 (09:18 -0500)
There are 2 labels to mark the same statements. Replace the 2 labels
with one versatile labe.

Cc: Joe Jin <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c

index eb8cafe801152028e5e2e2f9b6b1cc0ca5f02b52..a6d6c617b597361fafb291fa2c50a9a7f85b54a5 100644 (file)
@@ -1157,13 +1157,13 @@ static int ipoib_cm_tx_init(struct ipoib_cm_tx *p, u32 qpn,
        ret = ipoib_cm_modify_tx_init(p->dev, p->id,  p->qp);
        if (ret) {
                ipoib_warn(priv, "failed to modify tx qp to rtr: %d\n", ret);
-               goto err_modify;
+               goto err_modify_send;
        }
 
        ret = ipoib_cm_send_req(p->dev, p->id, p->qp, qpn, pathrec);
        if (ret) {
                ipoib_warn(priv, "failed to send cm req: %d\n", ret);
-               goto err_send_cm;
+               goto err_modify_send;
        }
 
        ipoib_dbg(priv, "Request connection 0x%x for gid %pI6 qpn 0x%x\n",
@@ -1171,8 +1171,7 @@ static int ipoib_cm_tx_init(struct ipoib_cm_tx *p, u32 qpn,
 
        return 0;
 
-err_send_cm:
-err_modify:
+err_modify_send:
        ib_destroy_cm_id(p->id);
 err_id:
        p->id = NULL;