aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-06-02 10:38:29 +0100
committerEric Anholt <eric@anholt.net>2016-06-06 14:28:40 -0700
commita9402dfe17bddeee5c72943385eaa13c39f106f7 (patch)
treedd2914b565a3b4efcdba2dcae6e1624159f08139 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
parent1a695a905c18548062509178b98bc91e67510864 (diff)
drm/vc4: clean up error exit path on failed dpi_connector allocation
There is redundant code in the clean up exit path when dpi_connector fails to be allocated. The current code checks if connector is NULL before destroying it, in fact, connector is NULL at this point so the check is redundant and can be removed. The final clean up is that we can remove the goto fail with a simple return and the unused variable ret. Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions