Re: [Intel-gfx] [v2] drm/i915/perf: Reverse a ternary to make sparse happy

2019-12-03 Thread Chris Wilson
Quoting Nathan Chancellor (2019-12-03 05:05:22) > On Fri, Nov 01, 2019 at 07:21:16PM +, Chris Wilson wrote: > > Avoid > > > > drivers/gpu/drm/i915/i915_perf.c:2442:85: warning: dubious: x | !y > > > > simply by inverting the predicate and reversing the ternary. > > > > v2: More the long line

Re: [Intel-gfx] [v2] drm/i915/perf: Reverse a ternary to make sparse happy

2019-12-02 Thread Nathan Chancellor
On Fri, Nov 01, 2019 at 07:21:16PM +, Chris Wilson wrote: > Avoid > > drivers/gpu/drm/i915/i915_perf.c:2442:85: warning: dubious: x | !y > > simply by inverting the predicate and reversing the ternary. > > v2: More the long lines into their own function so there is no confusion > on operator