diff options
| author | 2026-02-25 22:03:55 -0600 | |
|---|---|---|
| committer | 2026-02-26 18:26:12 +0900 | |
| commit | 7c76484fbb222e82f1db34009eb441d08db0a158 (patch) | |
| tree | 7b6f149410d248d22170243daff0d1fe41a9a7e3 /tools/perf/scripts/python/stackcollapse.py | |
| parent | ntfs: Replace ERR_PTR(0) with NULL (diff) | |
ntfs: Remove impossible condition
The variable name_len is checked to see if it's larger than the macro
NTFS_MAX_NAME_LEN however this condition is impossible because name_len
is of type u8 and NTFS_MAX_NAME_LEN is hardcoded to be 255.
Detected by Smatch:
fs/ntfs/namei.c:1175 __ntfs_link() warn:
impossible condition '(name_len > 255) => (0-255 > 255)'
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
