aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Marciniszyn <[email protected]>2016-04-12 11:28:56 -0700
committerDoug Ledford <[email protected]>2016-04-28 16:32:28 -0400
commit87717f0a75432e078bb894ba230dd236be7a31a7 (patch)
tree70728a747867bbf591a2f256e12f9c51a09b7981
parente4e0e39c8d41d5f6cb664a34ac7b2c6388b1b523 (diff)
IB/hfi1: Remove unreachable code
Remove unreachable code from RC ack handling to fix an smatch error. Fixes: 633d27399514 ("staging/rdma/hfi1: use mod_timer when appropriate") Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Dennis Dalessandro <[email protected]> Signed-off-by: Mike Marciniszyn <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
-rw-r--r--drivers/staging/rdma/hfi1/rc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rdma/hfi1/rc.c b/drivers/staging/rdma/hfi1/rc.c
index 0d7e1017f3cb..c6147793bf4b 100644
--- a/drivers/staging/rdma/hfi1/rc.c
+++ b/drivers/staging/rdma/hfi1/rc.c
@@ -1497,7 +1497,7 @@ reserved:
/* Ignore reserved NAK codes. */
goto bail_stop;
}
- return ret;
+ /* cannot be reached */
bail_stop:
hfi1_stop_rc_timers(qp);
return ret;