diff options
| author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-24 19:39:05 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-25 22:09:16 +0300 |
| commit | 5e16d07501becacdc766132facaceba47db839a6 (patch) | |
| tree | bfb414d319a1f3ee3f7714baa928dbf485941bee | |
| parent | 24523a94538ef500b867a2d4b2cb5bf72c8287a0 (diff) | |
| download | linux-5e16d07501becacdc766132facaceba47db839a6.tar.xz | |
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>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | drivers/staging/rdma/amso1100/c2_cm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/rdma/amso1100/c2_cm.c b/drivers/staging/rdma/amso1100/c2_cm.c index 23bfa94fbd4e..f8dbdb9e0f66 100644 --- a/drivers/staging/rdma/amso1100/c2_cm.c +++ b/drivers/staging/rdma/amso1100/c2_cm.c @@ -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); |
