diff options
author | Stoyan Gaydarov <stoyboyker@gmail.com> | 2009-03-26 15:24:47 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 15:24:28 +0100 |
commit | 6aa0d3a922c4f58fc36cc1502c6ac72f999e26bb (patch) | |
tree | 36e27fe870cc142115d7aff1a78ad2a927a4a874 /drivers/s390/char/tape_std.c | |
parent | 59f2e69d0f95bc00353628ef33fd534fbb8e3597 (diff) | |
download | linux-stable-6aa0d3a922c4f58fc36cc1502c6ac72f999e26bb.tar.gz linux-stable-6aa0d3a922c4f58fc36cc1502c6ac72f999e26bb.tar.bz2 linux-stable-6aa0d3a922c4f58fc36cc1502c6ac72f999e26bb.zip |
[S390] BUG to BUG_ON changes
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.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_std.c')
-rw-r--r-- | drivers/s390/char/tape_std.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index 44dd0f80c847..1a9420ba518d 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c @@ -37,8 +37,8 @@ tape_std_assign_timeout(unsigned long data) int rc; request = (struct tape_request *) data; - if ((device = request->device) == NULL) - BUG(); + device = request->device; + BUG_ON(!device); DBF_EVENT(3, "%08x: Assignment timeout. Device busy.\n", device->cdev_id); |