]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/partitions/check.c
block: allow deleting zero length partition
[linux-2.6-omap-h63xx.git] / fs / partitions / check.c
index ecc3330972e5a2de1ca8e397e3a9a0d90aec2ce8..68f3e41ae66f02e36894fcc8442afd90d52b4808 100644 (file)
@@ -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;