drm/radeon: no need to check all relocs for duplicates
authorChristian König <deathsimple@vodafone.de>
Mon, 24 Oct 2011 12:59:17 +0000 (14:59 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Dec 2011 19:49:08 +0000 (19:49 +0000)
commit16557f1ef0e14fd43b0a46b7dc89c431020ff3e2
tree56a95f59c732c15b42c5f9ce8058a0882512b516
parent4d8bf9aee1d8af93748096eb8992e4bb03d3fee0
drm/radeon: no need to check all relocs for duplicates

Only check the previously checked relocs for
duplicates. Also leaving the handle uninitialized
isn't such a good idea.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cs.c