Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Amitoj Kaur Chawla and committed by
Greg Kroah-Hartman
5e16d075 24523a94

-3
-3
drivers/staging/rdma/amso1100/c2_cm.c
··· 278 278 err = -ENOMEM; 279 279 goto bail0; 280 280 } 281 - if ((err = c2_errno(reply)) != 0) 282 - goto bail1; 283 281 284 - bail1: 285 282 vq_repbuf_free(c2dev, reply); 286 283 bail0: 287 284 vq_req_free(c2dev, vq_req);