From: David Sterba Date: Tue, 23 Aug 2016 17:33:05 +0000 (+0200) Subject: btrfs-progs: convert: remove redundant check X-Git-Tag: upstream/4.16.1~1350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cad06d9709462ae548e99173666bf52b3095e3c;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: convert: remove redundant check The check for sectorsize is properly done in do_convert, remove the BUG_ON. Signed-off-by: David Sterba --- diff --git a/btrfs-convert.c b/btrfs-convert.c index d2ff517..cf2701a 100644 --- a/btrfs-convert.c +++ b/btrfs-convert.c @@ -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;