drm/radeon/r600: Fix variables that are not used after assignment
authorTian Tao <tiantao6@hisilicon.com>
Thu, 8 Apr 2021 12:13:31 +0000 (20:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:55:08 +0000 (16:55 -0400)
commitccfc4392f257f9844bf36a1f254d617bef7193aa
tree2db6f5fadfb2c4a179d9610debbbaa911aba4e35
parent1f7cfaa3637838332dde29b87e0bc7c10a2f9bf5
drm/radeon/r600: Fix variables that are not used after assignment

err was not used after being assigned -EINVAL and was given a new value,
so here add goto to handle the error case.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600.c