btrfs-progs: disk-io: Remove duplicated ASSERT() call
diff mbox series

Message ID 20191210075202.47373-1-wqu@suse.com
State New
Headers show
Series
  • btrfs-progs: disk-io: Remove duplicated ASSERT() call
Related show

Commit Message

Qu WenRuo Dec. 10, 2019, 7:52 a.m. UTC
There are two ASSERT() with completely the same check introduced in
commit f7717d8cdb7d ("btrfs-progs: Remove fsid/metdata_uuid fields
from fs_info").

Just remove it.

Fixes: f7717d8cdb7d ("btrfs-progs: Remove fsid/metdata_uuid fields from fs_info")
Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 disk-io.c | 1 -
 1 file changed, 1 deletion(-)

Comments

David Sterba Jan. 2, 2020, 5:14 p.m. UTC | #1
On Tue, Dec 10, 2019 at 03:52:02PM +0800, Qu Wenruo wrote:
> There are two ASSERT() with completely the same check introduced in
> commit f7717d8cdb7d ("btrfs-progs: Remove fsid/metdata_uuid fields
> from fs_info").
> 
> Just remove it.
> 
> Fixes: f7717d8cdb7d ("btrfs-progs: Remove fsid/metdata_uuid fields from fs_info")
> Signed-off-by: Qu Wenruo <wqu@suse.com>

Applied, thanks.

Patch
diff mbox series

diff --git a/disk-io.c b/disk-io.c
index 659f8b93a7ca..8fe811e861fc 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -1248,7 +1248,6 @@  static struct btrfs_fs_info *__open_ctree_fd(int fp, const char *path,
 		goto out_devices;
 	}
 
-	ASSERT(!memcmp(disk_super->fsid, fs_devices->fsid, BTRFS_FSID_SIZE));
 	ASSERT(!memcmp(disk_super->fsid, fs_devices->fsid, BTRFS_FSID_SIZE));
 	if (btrfs_fs_incompat(fs_info, METADATA_UUID))
 		ASSERT(!memcmp(disk_super->metadata_uuid,