Commit 45a4f888 authored by Everest K.C.'s avatar Everest K.C. Committed by Rob Clark
Browse files

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: 35d36dc1 ("drm/msm/a6xx: Add traces for preemption")
Signed-off-by: default avatarEverest K.C. <everestkc@everestkc.com.np>
Patchwork: https://patchwork.freedesktop.org/patch/619349/


Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent 74c37464
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment