s390/dasd: remove unused code
authorStefan Haberland <stefan.haberland@de.ibm.com>
Mon, 24 Nov 2014 09:45:47 +0000 (10:45 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 28 Nov 2014 08:47:24 +0000 (09:47 +0100)
Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c

index 329db997ee6680fc931897b04a01495209df66d2..3679aeca1c1a02b4eed28a84ad9b7bab216c9f1f 100644 (file)
@@ -2326,21 +2326,11 @@ retry:
                        return -EAGAIN;
 
                /* normal recovery for basedev IO */
-               if (__dasd_sleep_on_erp(cqr)) {
+               if (__dasd_sleep_on_erp(cqr))
+                       /* handle erp first */
                        goto retry;
-                       /* remember that ERP was needed */
-                       rc = 1;
-                       /* skip processing for active cqr */
-                       if (cqr->status != DASD_CQR_TERMINATED &&
-                           cqr->status != DASD_CQR_NEED_ERP)
-                               break;
-               }
        }
 
-       /* start ERP requests in upper loop */
-       if (rc)
-               goto retry;
-
        return 0;
 }