Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25200
b: refs/heads/master
c: 3a8dc89
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sesterhenn authored and Adrian Bunk committed Mar 31, 2006
1 parent d8c9908 commit 8ec8dbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e048a8a688f07b17dbde9a96cab3759b900eae14
refs/heads/master: 3a8dc8930eab1209fd5063f6646a98e58a796eeb
13 changes: 4 additions & 9 deletions trunk/drivers/s390/char/tape_block.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ tapeblock_request_fn(request_queue_t *queue)

device = (struct tape_device *) queue->queuedata;
DBF_LH(6, "tapeblock_request_fn(device=%p)\n", device);
if (device == NULL)
BUG();

BUG_ON(device == NULL);
tapeblock_trigger_requeue(device);
}

Expand Down Expand Up @@ -307,8 +305,7 @@ tapeblock_revalidate_disk(struct gendisk *disk)
int rc;

device = (struct tape_device *) disk->private_data;
if (!device)
BUG();
BUG_ON(!device);

if (!device->blk_data.medium_changed)
return 0;
Expand Down Expand Up @@ -440,11 +437,9 @@ tapeblock_ioctl(

rc = 0;
disk = inode->i_bdev->bd_disk;
if (!disk)
BUG();
BUG_ON(!disk);
device = disk->private_data;
if (!device)
BUG();
BUG_ON(!device);
minor = iminor(inode);

DBF_LH(6, "tapeblock_ioctl(0x%0x)\n", command);
Expand Down

0 comments on commit 8ec8dbd

Please sign in to comment.