summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorShuicheng Lin <shuicheng.lin@intel.com>2026-09-15 01:12:29 +0000
committerShuicheng Lin <shuicheng.lin@intel.com>2026-09-25 08:34:16 -0700
commit5f058063197cd9db5ea73807223ea0df28ebfb82 (patch)
tree842c2fcef226d0a67c03ecad3c0ae2a7829d3732 /tools/perf/scripts/python
parent923bab365da28fdae995d08e67fbc2aa3eff1c6c (diff)
downloadlinux-5f058063197cd9db5ea73807223ea0df28ebfb82.tar.gz
linux-5f058063197cd9db5ea73807223ea0df28ebfb82.zip
drm/xe/madvise: Remove unreachable madvise_funcs NULL check
The NULL check on madvise_funcs[attr_type] in xe_vm_madvise_ioctl() is unreachable. madvise_args_are_sane() already validates args->type via a switch statement whose default case rejects any type not present in madvise_funcs[]. Every type that passes the sanity check has a corresponding entry in the table. Beyond being dead code, the check's error path (goto err_fini) would also skip xe_svm_notifier_unlock() if it were somehow reached with has_svm_userptr_vmas set, since err_fini only tears down the drm_exec. Removing the check eliminates both the redundancy and the latent unwind hazard. No functional change. Assisted-by: LLM Reviewed-by: Xin Wang <x.wang@intel.com> Link: https://patch.msgid.link/20260915011229.203424-1-shuicheng.lin@intel.com Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions