diff options
author | Everest K.C. <everestkc@everestkc.com.np> | 2024-10-11 08:23:14 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2024-10-27 18:13:19 +0300 |
commit | 45a4f888988a142b34d57a3e02950b3942b8cfc7 (patch) | |
tree | 89dc71178bd8b85381177827333c71d1f09c2df9 /tools/perf/scripts/python/gecko.py | |
parent | 74c374648ed08efb2ef339656f2764c28c046956 (diff) | |
download | linux-45a4f888988a142b34d57a3e02950b3942b8cfc7.tar.xz |
drm/msm/a6xx: Remove logically deadcode in a6xx_preempt.c
The ternary operator never returns -1 as `ring` will never be NULL.
Thus, the ternary operator is not needed.
Fix this by removing the ternary operation and only including the
value it will return when the `ring` is not NULL.
This was reported by Coverity Scan.
https://scan7.scan.coverity.com/#/project-view/51525/11354?selectedIssue=1600286
Fixes: 35d36dc1692f ("drm/msm/a6xx: Add traces for preemption")
Signed-off-by: Everest K.C. <everestkc@everestkc.com.np>
Patchwork: https://patchwork.freedesktop.org/patch/619349/
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions