Skip to contentSkip to conversation

staging: rdma: amso1100: Drop unnecessary goto

PATCH New Amitoj Kaur Chawla 1 participant 1 message Oct 24, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rdma: amso1100: Drop unnecessary goto

Deletes the jump to a label on the next line when the label isn't used anywhere else.

The semantic patch used to find this is:

// <smpl>
@r@
identifier l;
@@

-if (...) goto l;
-l:
// </smpl>

---
 drivers/staging/rdma/amso1100/c2_cm.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rdma/amso1100/c2_cm.c +0 -3
index 23bfa94..f8dbdb9 100644
@@ -278,10 +278,7 @@ int c2_llp_service_destroy(struct iw_cm_id *cm_id)
 		err = -ENOMEM;
 		goto bail0;
 	}
-	if ((err = c2_errno(reply)) != 0)
-		goto bail1;
 
- bail1:
 	vq_repbuf_free(c2dev, reply);
  bail0:
 	vq_req_free(c2dev, vq_req);
Signature · 1 line
1.9.1