[Intel-gfx] drivers/gpu/drm/i915/intel_pm.c:4467: bad comparison ?

David Binderman dcb314 at hotmail.com
Mon Jul 17 07:46:20 UTC 2017


Hello there,

drivers/gpu/drm/i915/intel_pm.c:4467]: (warning) Comparison of a boolean expression with an integer other than 0 or 1.

Source code is

        else if ((ddb_allocation && ddb_allocation /
            fixed_16_16_to_u32_round_up(plane_blocks_per_line)) >= 1)

Regards

David Binderman


More information about the Intel-gfx mailing list