Skip to content

Commit 666fe24

Browse files
ArushiSinghaljgunthorpe
authored andcommitted
infiniband: hw: Drop unnecessary continue
Continue at the bottom of a loop are removed. Issue found using drop_continue.cocci Coccinelle script. Signed-off-by: Arushi Singhal <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 7e952b1 commit 666fe24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/infiniband/hw/qib/qib_init.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,9 @@ int qib_init(struct qib_devdata *dd, int reinit)
678678
lastfail = qib_create_rcvhdrq(dd, rcd);
679679
if (!lastfail)
680680
lastfail = qib_setup_eagerbufs(rcd);
681-
if (lastfail) {
681+
if (lastfail)
682682
qib_dev_err(dd,
683683
"failed to allocate kernel ctxt's rcvhdrq and/or egr bufs\n");
684-
continue;
685-
}
686684
}
687685

688686
for (pidx = 0; pidx < dd->num_pports; ++pidx) {

0 commit comments

Comments
 (0)