From: Siavash Eliasi Date: Thu, 12 Dec 2013 14:58:52 +0000 (+0330) Subject: r600g: Removed unnecessary positivity check for unsigned int variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03065ea05cd601021dc20b9d809ec75e63621e31;p=mesa.git r600g: Removed unnecessary positivity check for unsigned int variable. Signed-off-by: Marek Olšák --- diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 86f79e209b2..c5922a8fa5b 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -387,7 +387,7 @@ static int reserve_cfile(struct r600_bytecode *bc, struct alu_bank_swizzle *bs, static int is_gpr(unsigned sel) { - return (sel >= 0 && sel <= 127); + return (sel <= 127); } /* CB constants start at 512, and get translated to a kcache index when ALU