OSDN Git Service

infiniband: hw: Drop unnecessary continue
authorArushi <arushisinghal19971997@gmail.com>
Sat, 3 Mar 2018 16:24:57 +0000 (21:54 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 6 Mar 2018 23:00:51 +0000 (16:00 -0700)
Continue at the bottom of a loop are removed.
Issue found using drop_continue.cocci Coccinelle script.

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qib/qib_init.c

index 3990f38..6c68f8a 100644 (file)
@@ -678,11 +678,9 @@ int qib_init(struct qib_devdata *dd, int reinit)
                lastfail = qib_create_rcvhdrq(dd, rcd);
                if (!lastfail)
                        lastfail = qib_setup_eagerbufs(rcd);
-               if (lastfail) {
+               if (lastfail)
                        qib_dev_err(dd,
                                "failed to allocate kernel ctxt's rcvhdrq and/or egr bufs\n");
-                       continue;
-               }
        }
 
        for (pidx = 0; pidx < dd->num_pports; ++pidx) {