IB/hfi1: Remove unreachable code
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 12 Apr 2016 18:28:56 +0000 (11:28 -0700)
committerDoug Ledford <dledford@redhat.com>
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 <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>
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;