From 03065ea05cd601021dc20b9d809ec75e63621e31 Mon Sep 17 00:00:00 2001 From: Siavash Eliasi Date: Thu, 12 Dec 2013 18:28:52 +0330 Subject: [PATCH] r600g: Removed unnecessary positivity check for unsigned int variable. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Olšák --- src/gallium/drivers/r600/r600_asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2