Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -7
+5 -7
drivers/s390/char/tape_34xx.c
··· 773 773 "occurred\n"); 774 774 return tape_34xx_erp_failed(request, -EIO); 775 775 case 0x57: 776 - if (device->cdev->id.driver_info == tape_3480) { 777 - /* Attention intercept. */ 778 - return tape_34xx_erp_retry(request); 779 - } else { 780 - /* Global status intercept. */ 781 - return tape_34xx_erp_retry(request); 782 - } 776 + /* 777 + * 3480: Attention intercept. 778 + * 3490: Global status intercept. 779 + */ 780 + return tape_34xx_erp_retry(request); 783 781 case 0x5a: 784 782 /* 785 783 * Tape length incompatible. The tape inserted is too long,