btrfs-progs: remove redundant check in btrfs_add_to_fsid
authorDavid Sterba <dsterba@suse.com>
Wed, 7 Sep 2016 13:52:06 +0000 (15:52 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Oct 2016 09:33:15 +0000 (11:33 +0200)
The callers do the sanity checks.

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

diff --git a/utils.c b/utils.c
index 8a5c63e..410e9c1 100644 (file)
--- 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;