drm/radeon: Fix scratch register leak in IB test.
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 20 Sep 2012 08:31:10 +0000 (10:31 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2012 14:22:42 +0000 (10:22 -0400)
commitaf026c5bd14cb57b230a63bdee6f73677a06f010
tree90f3287d137f48a62b79809f5baf6dc33954ebf4
parentbced76f27165ca7733437715185c3a1aa526f7a1
drm/radeon: Fix scratch register leak in IB test.

Restructure the code to jump out via labels instead of directly returning
early. Also make error reporting consistent across all hardware generations.

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Simon Kitching <skitching@vonos.net>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r600.c