aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/tape_3590.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/char/tape_3590.c')
-rw-r--r--drivers/s390/char/tape_3590.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/s390/char/tape_3590.c b/drivers/s390/char/tape_3590.c
index 22db2529e1b2..a7d570728882 100644
--- a/drivers/s390/char/tape_3590.c
+++ b/drivers/s390/char/tape_3590.c
@@ -1392,15 +1392,12 @@ tape_3590_print_era_msg(struct tape_device *device, struct irb *irb)
1392static int tape_3590_crypt_error(struct tape_device *device, 1392static int tape_3590_crypt_error(struct tape_device *device,
1393 struct tape_request *request, struct irb *irb) 1393 struct tape_request *request, struct irb *irb)
1394{ 1394{
1395 u8 cu_rc, ekm_rc1; 1395 u8 cu_rc;
1396 u16 ekm_rc2; 1396 u16 ekm_rc2;
1397 u32 drv_rc;
1398 char *sense; 1397 char *sense;
1399 1398
1400 sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data; 1399 sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data;
1401 cu_rc = sense[0]; 1400 cu_rc = sense[0];
1402 drv_rc = *((u32*) &sense[5]) & 0xffffff;
1403 ekm_rc1 = sense[9];
1404 ekm_rc2 = *((u16*) &sense[10]); 1401 ekm_rc2 = *((u16*) &sense[10]);
1405 if ((cu_rc == 0) && (ekm_rc2 == 0xee31)) 1402 if ((cu_rc == 0) && (ekm_rc2 == 0xee31))
1406 /* key not defined on EKM */ 1403 /* key not defined on EKM */