staging: rdma: amso1100: Drop unnecessary goto
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 24 Oct 2015 16:39:05 +0000 (22:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 19:09:16 +0000 (04:09 +0900)
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>
drivers/staging/rdma/amso1100/c2_cm.c

index 23bfa94fbd4e4094b906c83f2504e00bc6ebab21..f8dbdb9e0f66669bb1cd865a619eab7d55bffa6d 100644 (file)
@@ -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);