summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-09-07 15:52:06 +0200
committerDavid Sterba <dsterba@suse.com>2016-10-03 11:33:15 +0200
commit1424a9b4d9055818df0915f40e94306f72a2c426 (patch)
treecd041ec82e2632d6ff4ba1033409d0c1d2fbc1c7
parentee3dfeaab2a86bb687a09febbd57d4c07633fdce (diff)
btrfs-progs: remove redundant check in btrfs_add_to_fsid
The callers do the sanity checks. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 8a5c63e7..410e9c1f 100644
--- a/utils.c
+++ b/utils.c
@@ -1627,7 +1627,6 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans,
buf = kzalloc(sectorsize, GFP_NOFS);
if (!buf)
goto err_nomem;
- BUG_ON(sizeof(*disk_super) > sectorsize);
disk_super = (struct btrfs_super_block *)buf;
dev_item = &disk_super->dev_item;