gallium: fix return value check
authorMartina Kollarova <martina.kollarova@intel.com>
Thu, 8 Sep 2016 12:12:42 +0000 (15:12 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Sep 2016 13:36:43 +0000 (14:36 +0100)
commit2527e18eebe2faf395d1682db7df76043aca6ea3
tree13c53ef4dfe8723df599d60fbac47a3dee6602c4
parentab29788250a705eb0dd517cb3d38f37f944eb8ad
gallium: fix return value check

A possible error (-1) was being lost because it was first converted to an
unsigned int and only then checked.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Martina Kollarova <martina.kollarova@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/gallium/winsys/sw/kms-dri/kms_dri_sw_winsys.c