[Mesa-dev] [PATCH v2 2/2] i915: remove unnecessary `if`

Chris Wilson chris at chris-wilson.co.uk
Mon Aug 15 15:48:42 UTC 2016


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>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the mesa-dev mailing list