From 7cad06d9709462ae548e99173666bf52b3095e3c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 23 Aug 2016 19:33:05 +0200 Subject: [PATCH] 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 --- btrfs-convert.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.7.4