IB/ipath: Remove unreachable code
authorAlan Cox <alan@linux.intel.com>
Thu, 25 Oct 2012 14:27:07 +0000 (14:27 +0000)
committerRoland Dreier <roland@purestorage.com>
Thu, 22 Nov 2012 08:50:51 +0000 (00:50 -0800)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/ipath/ipath_init_chip.c

index 49b09c697c7c8462800a9737dc6de591879dd5a2..be2a60e142b00b0e9af8e2eed5172700d731fbf2 100644 (file)
@@ -718,16 +718,6 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit)
        if (ret)
                goto done;
 
-       /*
-        * we ignore most issues after reporting them, but have to specially
-        * handle hardware-disabled chips.
-        */
-       if (ret == 2) {
-               /* unique error, known to ipath_init_one */
-               ret = -EPERM;
-               goto done;
-       }
-
        /*
         * We could bump this to allow for full rcvegrcnt + rcvtidcnt,
         * but then it no longer nicely fits power of two, and since