diff options
| author | Ethan Tidmore <ethantidmore06@gmail.com> | 2026-02-25 22:03:54 -0600 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-02-26 18:26:09 +0900 |
| commit | ec8676c84f665257f4bf9349d4c12c05e09e31b3 (patch) | |
| tree | d2253b3c9569106040ab89f760089c5f94688694 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 9b4253cd63ac00f6944fa0ac58d981c21859db3b (diff) | |
ntfs: Replace ERR_PTR(0) with NULL
The variable err is confirmed to be 0 and then never reassigned in the
success path. The function then returns with ERR_PTR(err) which just
equals NULL and can be misleading.
Detected by Smatch:
fs/ntfs/namei.c:1091 ntfs_mkdir() warn:
passing zero to 'ERR_PTR'
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/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
