diff options
| author | 2026-09-07 18:16:23 +0800 | |
|---|---|---|
| committer | 2026-10-20 18:41:39 +0900 | |
| commit | 34ed307206e3eef231cb06454d4e89cefb9bfccd (patch) | |
| tree | 59093e5f9f55fe6194e05f6248a4cd2fb5b6184b /scripts | |
| parent | ntfs: use fatal_signal_pending() for fallocate interruption checks (diff) | |
ntfs: remove unreachable code in load_and_init_attrdef/upcase
Both load_and_init_attrdef() and load_and_init_upcase() open a system
inode with ntfs_iget() and, on error, run:
if (IS_ERR(ino)) {
if (!IS_ERR(ino))
iput(ino);
goto failed;
}
The inner guard is the exact negation of the outer one, so
iput(ino) is dead code. Drop the unreachable branch and collapse
the error check to a single statement.
No functional change.
Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
