]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: remove superfluous BUG_ON() in integrity checks
authorJohannes Thumshirn <jth@kernel.org>
Thu, 5 Dec 2019 13:19:58 +0000 (14:19 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 20 Jan 2020 15:40:52 +0000 (16:40 +0100)
commit129699522581f465e0300a286ed28a0aab0893d3
tree38dca04ea4b4072695e79096d1454e678936a766
parent3dbd351df42109902fbcebf27104149226a4fcd9
btrfs: remove superfluous BUG_ON() in integrity checks

btrfsic_process_superblock() BUG_ON()s if 'state' is NULL. But this can
never happen as the only caller from btrfsic_process_superblock() is
btrfsic_mount() which allocates 'state' some lines above calling
btrfsic_process_superblock() and checks for the allocation to succeed.

Let's just remove the impossible to hit BUG_ON().

Signed-off-by: Johannes Thumshirn <jth@kernel.org>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/check-integrity.c