提交 55b5eb75 编写于 作者: M Martin Schwidefsky

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: NFraser Brown <mlfbrown@stanford.edu>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 926a7336
...@@ -773,13 +773,11 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request, ...@@ -773,13 +773,11 @@ tape_34xx_unit_check(struct tape_device *device, struct tape_request *request,
"occurred\n"); "occurred\n");
return tape_34xx_erp_failed(request, -EIO); return tape_34xx_erp_failed(request, -EIO);
case 0x57: case 0x57:
if (device->cdev->id.driver_info == tape_3480) { /*
/* Attention intercept. */ * 3480: Attention intercept.
return tape_34xx_erp_retry(request); * 3490: Global status intercept.
} else { */
/* Global status intercept. */ return tape_34xx_erp_retry(request);
return tape_34xx_erp_retry(request);
}
case 0x5a: case 0x5a:
/* /*
* Tape length incompatible. The tape inserted is too long, * Tape length incompatible. The tape inserted is too long,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册