summaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/tape_std.c
diff options
context:
space:
mode:
authorStoyan Gaydarov <stoyboyker@gmail.com>2009-03-26 15:24:47 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 15:24:28 +0100
commit6aa0d3a922c4f58fc36cc1502c6ac72f999e26bb (patch)
tree36e27fe870cc142115d7aff1a78ad2a927a4a874 /drivers/s390/char/tape_std.c
parent[S390] zfcpdump: Prevent zcore from beeing built as a kernel module. (diff)
downloadlinux-6aa0d3a922c4f58fc36cc1502c6ac72f999e26bb.tar.xz
linux-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.c4
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);