diff options
author | 2006-04-10 22:53:49 -0700 | |
---|---|---|
committer | 2006-04-11 06:18:38 -0700 | |
commit | f976069a3a4f9f79ef816223cccb1efa5c4f51ed (patch) | |
tree | 2c5ef5aa99d7dab42074766b51e1f7f5c262ecc6 /drivers/s390/char/tape_core.c | |
parent | [PATCH] s390: dasd proc entries (diff) | |
download | linux-f976069a3a4f9f79ef816223cccb1efa5c4f51ed.tar.gz linux-f976069a3a4f9f79ef816223cccb1efa5c4f51ed.tar.bz2 linux-f976069a3a4f9f79ef816223cccb1efa5c4f51ed.zip |
[PATCH] s390: minor tape fixes
Cleanup of minor bugs found by a source code checker.
Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/char/tape_core.c')
-rw-r--r-- | drivers/s390/char/tape_core.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index 389ee2c0f443..e6e4086d3224 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c @@ -210,18 +210,14 @@ tape_state_set(struct tape_device *device, enum tape_state newstate) return; } DBF_EVENT(4, "ts. dev: %x\n", device->first_minor); - if (device->tape_state < TO_SIZE && device->tape_state >= 0) - str = tape_state_verbose[device->tape_state]; - else - str = "UNKNOWN TS"; - DBF_EVENT(4, "old ts: %s\n", str); - if (device->tape_state < TO_SIZE && device->tape_state >=0 ) + DBF_EVENT(4, "old ts:\t\n"); + if (device->tape_state < TS_SIZE && device->tape_state >=0 ) str = tape_state_verbose[device->tape_state]; else str = "UNKNOWN TS"; DBF_EVENT(4, "%s\n", str); DBF_EVENT(4, "new ts:\t\n"); - if (newstate < TO_SIZE && newstate >= 0) + if (newstate < TS_SIZE && newstate >= 0) str = tape_state_verbose[newstate]; else str = "UNKNOWN TS"; |