mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
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: Adam Borowski <kilobyte@angband.pl> Reviewed-by: Andreas Dilger <adilger@dilger.ca> Link: https://lore.kernel.org/r/20211115172020.57853-1-kilobyte@angband.pl Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
parent
fac888b2be
commit
037e7c525d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user