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>
/* Ignore reserved NAK codes. */
goto bail_stop;
}
/* Ignore reserved NAK codes. */
goto bail_stop;
}
+ /* cannot be reached */
bail_stop:
hfi1_stop_rc_timers(qp);
return ret;
bail_stop:
hfi1_stop_rc_timers(qp);
return ret;