btrfs-progs: convert: remove redundant check
authorDavid Sterba <dsterba@suse.com>
Tue, 23 Aug 2016 17:33:05 +0000 (19:33 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 24 Aug 2016 12:37:36 +0000 (14:37 +0200)
The check for sectorsize is properly done in do_convert, remove the
BUG_ON.

Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-convert.c

index d2ff517..cf2701a 100644 (file)
@@ -1359,7 +1359,6 @@ static int migrate_super_block(int fd, u64 old_bytenr, u32 sectorsize)
        u32 len;
        u32 bytenr;
 
-       BUG_ON(sectorsize < sizeof(*super));
        buf = malloc(sizeof(*buf) + sectorsize);
        if (!buf)
                return -ENOMEM;