winsys/radeon: fix int->boolean conversion in radeon_bo_is_referenced_by_any_cs

This commit is contained in:
Marek Olšák 2011-07-22 19:22:50 +02:00
parent 67c995e0f1
commit e22a1005c0
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ radeon_bo_is_referenced_by_cs_for_write(struct radeon_drm_cs *cs,
static INLINE boolean
radeon_bo_is_referenced_by_any_cs(struct radeon_bo *bo)
{
return bo->num_cs_references;
return bo->num_cs_references != 0;
}
void radeon_drm_cs_sync_flush(struct radeon_drm_cs *cs);