drm/i915/perf: Reverse a ternary to make sparse happy
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Nov 2019 19:21:16 +0000 (19:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Nov 2019 19:45:56 +0000 (19:45 +0000)
commit9278bbb6e43cde306f07f9a60274195b5b24f90a
tree301722ea9b5c7383d900786172c90035794eabf6
parent833e979db36c0202f21e1e0bdd7339a27e50b8e3
drm/i915/perf: Reverse a ternary to make sparse happy

Avoid

drivers/gpu/drm/i915/i915_perf.c:2442:85: warning: dubious: x | !y

simply by inverting the predicate and reversing the ternary.

v2: Move the long lines into their own function so there is no confusion
on operator precedence.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191101192116.12647-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_perf.c