Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110471
b: refs/heads/master
c: ec2cded
h: refs/heads/master
i:
  110469: 6737f7b
  110467: b903ecd
  110463: f3d548a
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Oct 9, 2008
1 parent ea4dc80 commit 6eafd2f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition 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: def4e38ddda9bef20b69bfa939195c2f79da7979
refs/heads/master: ec2cdedf798385a9397ac50dd0405dd658f8529c
2 changes: 0 additions & 2 deletions trunk/block/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ static int blkpg_ioctl(struct block_device *bdev, struct blkpg_ioctl_arg __user
case BLKPG_DEL_PARTITION:
if (!disk->part[part-1])
return -ENXIO;
if (disk->part[part - 1]->nr_sects == 0)
return -ENXIO;
bdevp = bdget_disk(disk, part);
if (!bdevp)
return -ENOMEM;
Expand Down
2 changes: 0 additions & 2 deletions trunk/fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,6 @@ void delete_partition(struct gendisk *disk, int part)

if (!p)
return;
if (!p->nr_sects)
return;
disk->part[part-1] = NULL;
p->start_sect = 0;
p->nr_sects = 0;
Expand Down

0 comments on commit 6eafd2f

Please sign in to comment.