diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-01 19:21:16 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-01 19:45:56 +0000 |
commit | 9278bbb6e43cde306f07f9a60274195b5b24f90a (patch) | |
tree | 301722ea9b5c7383d900786172c90035794eabf6 /drivers/gpu/drm/i915/intel_wopcm.c | |
parent | 833e979db36c0202f21e1e0bdd7339a27e50b8e3 (diff) |
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
Diffstat (limited to 'drivers/gpu/drm/i915/intel_wopcm.c')
0 files changed, 0 insertions, 0 deletions