aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2016-04-12 11:28:56 -0700
committerDoug Ledford <dledford@redhat.com>2016-04-28 16:32:28 -0400
commit87717f0a75432e078bb894ba230dd236be7a31a7 (patch)
tree70728a747867bbf591a2f256e12f9c51a09b7981 /drivers/staging/rdma
parentIB/hfi1: Fix double QSFP resource acquire on cache refresh (diff)
downloadlinux-dev-87717f0a75432e078bb894ba230dd236be7a31a7.tar.xz
linux-dev-87717f0a75432e078bb894ba230dd236be7a31a7.zip
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 <dan.carpenter@oracle.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma')
-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;