[Mesa-dev] [PATCH v2 2/2] i915: remove unnecessary `if`
Emil Velikov
emil.l.velikov at gmail.com
Wed Aug 24 10:17:41 UTC 2016
On 15 August 2016 at 16:48, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> On Mon, Aug 15, 2016 at 03:51:21PM +0100, Eric Engestrom wrote:
>> if (x) return true; else return false;
>> can be simplified as:
>> return x;
>> since `x` is already a boolean expression.
>>
>> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
>
> Both Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
R-b and pushed both to master.
Thanks for the cleanups Eric !
Emil
More information about the mesa-dev
mailing list