intel/compiler: remove check unsigned is >= 0
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 13 Jul 2017 15:04:28 +0000 (16:04 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 13 Jul 2017 21:50:29 +0000 (22:50 +0100)
By definition unsigned are always >= 0.

CID: 742212
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/intel/compiler/brw_eu_emit.c

index 231d6fdaec016cdd9e158f70fc66e1d3a0919dc4..0b0d67a5c56e67a969c71879fb684a746e2e35b1 100644 (file)
@@ -306,7 +306,7 @@ validate_reg(const struct gen_device_info *devinfo,
        reg.nr == BRW_ARF_ACCUMULATOR)
       assert(reg.swizzle == BRW_SWIZZLE_XYZW);
 
-   assert(reg.hstride >= 0 && reg.hstride < ARRAY_SIZE(hstride_for_reg));
+   assert(reg.hstride < ARRAY_SIZE(hstride_for_reg));
    hstride = hstride_for_reg[reg.hstride];
 
    if (reg.vstride == 0xf) {