Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24206
b: refs/heads/master
c: 547bc92
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sesterhenn authored and Adrian Bunk committed Mar 26, 2006
1 parent 990cdaf commit 6209d1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: c163c7293eb68bf6c0c824d122a2192b9f129193
refs/heads/master: 547bc92649345af6014578a64b27cc5787617935
6 changes: 2 additions & 4 deletions trunk/drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,7 @@ static int open_dev(struct dm_dev *d, dev_t dev)

int r;

if (d->bdev)
BUG();
BUG_ON(d->bdev);

bdev = open_by_devnum(dev, d->mode);
if (IS_ERR(bdev))
Expand Down Expand Up @@ -427,8 +426,7 @@ static int __table_get_device(struct dm_table *t, struct dm_target *ti,
struct dm_dev *dd;
unsigned int major, minor;

if (!t)
BUG();
BUG_ON(!t);

if (sscanf(path, "%u:%u", &major, &minor) == 2) {
/* Extract the major/minor numbers */
Expand Down

0 comments on commit 6209d1b

Please sign in to comment.