Skip to content

Commit 87717f0

Browse files
mmarcinidledford
authored andcommitted
IB/hfi1: Remove unreachable code
Remove unreachable code from RC ack handling to fix an smatch error. Fixes: 633d273 ("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]>
1 parent e4e0e39 commit 87717f0

File tree

1 file changed

+1
-1
lines changed
  • drivers/staging/rdma/hfi1

1 file changed

+1
-1
lines changed

drivers/staging/rdma/hfi1/rc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ static int do_rc_ack(struct rvt_qp *qp, u32 aeth, u32 psn, int opcode,
14971497
/* Ignore reserved NAK codes. */
14981498
goto bail_stop;
14991499
}
1500-
return ret;
1500+
/* cannot be reached */
15011501
bail_stop:
15021502
hfi1_stop_rc_timers(qp);
15031503
return ret;

0 commit comments

Comments
 (0)