diff --git a/drivers/infiniband/hw/bng_re/bng_fw.c b/drivers/infiniband/hw/bng_re/bng_fw.c index 17d7cc3aa11d..50156c300b33 100644 --- a/drivers/infiniband/hw/bng_re/bng_fw.c +++ b/drivers/infiniband/hw/bng_re/bng_fw.c @@ -123,7 +123,6 @@ static int bng_re_process_qp_event(struct bng_re_rcfw *rcfw, bool is_waiter_alive; struct pci_dev *pdev; u32 wait_cmds = 0; - int rc = 0; pdev = rcfw->pdev; switch (qp_event->event) { @@ -152,7 +151,7 @@ static int bng_re_process_qp_event(struct bng_re_rcfw *rcfw, "rcfw timedout: cookie = %#x, free_slots = %d", cookie, crsqe->free_slots); spin_unlock(&hwq->lock); - return rc; + return 0; } if (crsqe->is_waiter_alive) { @@ -182,7 +181,7 @@ static int bng_re_process_qp_event(struct bng_re_rcfw *rcfw, spin_unlock(&hwq->lock); } *num_wait += wait_cmds; - return rc; + return 0; } /* function events */