Re: [PATCH 2/2] drm/mcde: Do not needlessly logically and with 3

2019-11-22 Thread Stephan Gerhold
On Fri, Nov 22, 2019 at 08:25:08AM +0100, Linus Walleij wrote: > The i index i always 0..3 in these statements so there > is no need to tag "& 3" to clamp it to 3 here. Make > the operator precedence explicit even if it's correct > as it is, the paranthesis creates less cognitive stress > for human

[PATCH 2/2] drm/mcde: Do not needlessly logically and with 3

2019-11-21 Thread Linus Walleij
The i index i always 0..3 in these statements so there is no need to tag "& 3" to clamp it to 3 here. Make the operator precedence explicit even if it's correct as it is, the paranthesis creates less cognitive stress for humans. Cc: Stephan Gerhold Signed-off-by: Linus Walleij --- drivers/gpu/d