diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-01-22 05:10:39 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-01-22 06:51:49 -0500 |
commit | 55b5eb75e7ccdfe94b6ea1be6bba0c21149abecf (patch) | |
tree | 290dc153a8b26383b24d85020887d62b68cf2d70 /drivers/s390 | |
parent | 926a7336a776263b5fdfa7b77fec704be1cae33f (diff) |
s390/tape: remove redundant if statement
The unit check handler for 3480 / 3490 tapes used to print a different
warning message for erpa code 0x57 dependent on the device type.
The warning messages have been remove in a cleanup, the if statement
is a left over. Remove it.
Reported-by: Fraser Brown <mlfbrown@stanford.edu>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/tape_34xx.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/s390/char/tape_34xx.c b/drivers/s390/char/tape_34xx.c index 9aa79702b370..de69f0ddc321 100644 --- a/drivers/s390/char/tape_34xx.c +++ b/drivers/s390/char/tape_34xx.c | |||
@@ -773,13 +773,11 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request, | |||
773 | "occurred\n"); | 773 | "occurred\n"); |
774 | return tape_34xx_erp_failed(request, -EIO); | 774 | return tape_34xx_erp_failed(request, -EIO); |
775 | case 0x57: | 775 | case 0x57: |
776 | if (device->cdev->id.driver_info == tape_3480) { | 776 | /* |
777 | /* Attention intercept. */ | 777 | * 3480: Attention intercept. |
778 | return tape_34xx_erp_retry(request); | 778 | * 3490: Global status intercept. |
779 | } else { | 779 | */ |
780 | /* Global status intercept. */ | 780 | return tape_34xx_erp_retry(request); |
781 | return tape_34xx_erp_retry(request); | ||
782 | } | ||
783 | case 0x5a: | 781 | case 0x5a: |
784 | /* | 782 | /* |
785 | * Tape length incompatible. The tape inserted is too long, | 783 | * Tape length incompatible. The tape inserted is too long, |