OSDN Git Service

drm/amdgpu: Remove superfluous NULL check
authorLuben Tuikov <luben.tuikov@amd.com>
Tue, 1 Sep 2020 23:10:32 +0000 (19:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Sep 2020 18:47:55 +0000 (14:47 -0400)
commit1625951a3a7bdd776d38f2cdd35f72a795e82df0
tree0a993577edb60dff80fb1548aa02bf947b4923ef
parentabb6fccbb4e5bab30ff9b96e27acdd9107426f28
drm/amdgpu: Remove superfluous NULL check

The DRM device is a static member of
the amdgpu device structure and as such
always exists, so long as the PCI and
thus the amdgpu device exist.

Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c