diff options
author | Stefan Haberland <stefan.haberland@de.ibm.com> | 2014-11-24 10:45:47 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-11-28 09:47:24 +0100 |
commit | 590aeeddc6c6d9b9c93bec56fc68512631489d2a (patch) | |
tree | bd4039d8908cddc8b1c9f19baa9f7899f592ba04 /drivers/s390 | |
parent | 8c080bd0a1f9f337add122e1c0252151a8f89c14 (diff) | |
download | linux-stable-590aeeddc6c6d9b9c93bec56fc68512631489d2a.tar.gz linux-stable-590aeeddc6c6d9b9c93bec56fc68512631489d2a.tar.bz2 linux-stable-590aeeddc6c6d9b9c93bec56fc68512631489d2a.zip |
s390/dasd: remove unused code
Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dasd.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 329db997ee66..3679aeca1c1a 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c @@ -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; } |