Continue at the bottom of a loop are removed.
Issue found using drop_continue.cocci Coccinelle script.

Signed-off-by: Arushi Singhal <arushisinghal19971...@gmail.com>
---
Changes in v2:
- Braces is dropped from if with single statement.

 drivers/infiniband/hw/qib/qib_init.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/infiniband/hw/qib/qib_init.c 
b/drivers/infiniband/hw/qib/qib_init.c
index 3990f38..6c68f8a 100644
--- a/drivers/infiniband/hw/qib/qib_init.c
+++ b/drivers/infiniband/hw/qib/qib_init.c
@@ -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) {
-- 
2.7.4

Reply via email to