summaryrefslogtreecommitdiff
path: root/drivers/s390/char/tape_3590.c
diff options
context:
space:
mode:
authorHeiko Carstens <heiko.carstens@de.ibm.com>2011-05-23 08:24:28 (GMT)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-05-23 08:24:29 (GMT)
commit160fbf2e92cccbc1dccb4f837f5174808b2636d2 (patch)
treea2106a49721a74711bb3015e6180ba80f522200f /drivers/s390/char/tape_3590.c
parent37fa9975b28a2d86a5b47ec17e6d845dbd899c60 (diff)
downloadlinux-fsl-qoriq-160fbf2e92cccbc1dccb4f837f5174808b2636d2.tar.xz
[S390] tape: remove unused/not handled return codes
Return codes are on purpose not handled or used. So remove them. Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
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 22db252..a7d5707 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)
static int tape_3590_crypt_error(struct tape_device *device,
struct tape_request *request, struct irb *irb)
{
- u8 cu_rc, ekm_rc1;
+ u8 cu_rc;
u16 ekm_rc2;
- u32 drv_rc;
char *sense;
sense = ((struct tape_3590_sense *) irb->ecw)->fmt.data;
cu_rc = sense[0];
- drv_rc = *((u32*) &sense[5]) & 0xffffff;
- ekm_rc1 = sense[9];
ekm_rc2 = *((u16*) &sense[10]);
if ((cu_rc == 0) && (ekm_rc2 == 0xee31))
/* key not defined on EKM */