]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit357ae7355cfaac3cb48a0a1863bd88ba4730f0a9
tree2db6f5fadfb2c4a179d9610debbbaa911aba4e35
parent4c8ed7dad5d518b99b5980c3e70f625c2c068f18
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