Commit 037e7c52 authored by Adam Borowski's avatar Adam Borowski Committed by Theodore Ts'o
Browse files

ext4: drop an always true check



EXT_FIRST_INDEX(ptr) is ptr+12, which can't possibly be null; gcc-12
warns about this.

Signed-off-by: default avatarAdam Borowski <kilobyte@angband.pl>
Reviewed-by: default avatarAndreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20211115172020.57853-1-kilobyte@angband.pl


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent fac888b2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1496,8 +1496,7 @@ static int ext4_ext_search_left(struct inode *inode,
				EXT4_ERROR_INODE(inode,
				  "ix (%d) != EXT_FIRST_INDEX (%d) (depth %d)!",
				  ix != NULL ? le32_to_cpu(ix->ei_block) : 0,
				  EXT_FIRST_INDEX(path[depth].p_hdr) != NULL ?
		le32_to_cpu(EXT_FIRST_INDEX(path[depth].p_hdr)->ei_block) : 0,
				  le32_to_cpu(EXT_FIRST_INDEX(path[depth].p_hdr)->ei_block),
				  depth);
				return -EFSCORRUPTED;
			}