From: Lionel Landwerlin Date: Thu, 13 Jul 2017 15:04:28 +0000 (+0100) Subject: intel/compiler: remove check unsigned is >= 0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a25a53345859c3c560b923de3359c245db81c5e6;p=mesa.git intel/compiler: remove check unsigned is >= 0 By definition unsigned are always >= 0. CID: 742212 Signed-off-by: Lionel Landwerlin Reviewed-by: Anuj Phogat --- diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index 231d6fdaec0..0b0d67a5c56 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -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) {