r600g: make condition clearer
authorConstantine Kharlamov <Hi-Angel@yandex.ru>
Mon, 20 Mar 2017 12:19:42 +0000 (15:19 +0300)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 20 Mar 2017 16:11:15 +0000 (17:11 +0100)
commit64cbbd28888a94a72bb168e1034bcfce15124da7
treeec29a2023ecc2b886a393c231e544428d6f60283
parent36e029d3567f34496a771d0e961fe76bbb69799e
r600g: make condition clearer

The second check in the old code looked pretty much unreachable, esp.
because it's not obvious that "max_entries" could be zero. To find out
that it was intentional I had to run some checks, and to dig into
the old versions of the file.

So, rewrite the check to make the intention clear.

v2: s/r600/r600g in the title, and per Dieter Nützel's comment wrap
lines of condition.

Signed-off-by: Constantine Kharlamov <Hi-Angel@yandex.ru>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/r600/r600_asm.c