IB/hfi1: Remove unreachable code
authorMike Marciniszyn <[email protected]>
Tue, 12 Apr 2016 18:28:56 +0000 (11:28 -0700)
committerDoug Ledford <[email protected]>
Thu, 28 Apr 2016 20:32:28 +0000 (16:32 -0400)
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]>
drivers/staging/rdma/hfi1/rc.c

index 0d7e1017f3cbbf8cf5b75bb27406f678d303b3aa..c6147793bf4b663905807b482aba37feaeb19f1e 100644 (file)
@@ -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;