OSDN Git Service

drm/radeon: Remove test for !screen_base in fbdev probing
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 16 Mar 2023 09:37:32 +0000 (10:37 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 Mar 2023 15:18:42 +0000 (11:18 -0400)
commit11b6005865e47c4cba862678936628175acfa16e
treea5ae69024e4dad9d67d68f62d241e5477695ca14
parentc4aab3499be2abd8671e5f3f70a9d38acd8e4ce4
drm/radeon: Remove test for !screen_base in fbdev probing

The screen_base field comes from the fbdev BO and contains the fbdev
framebuffer base address. We get the BO memory via radeon_bo_kmap(),
which already reports the error -ENOMEM if the buffer could not be
mapped. So remove the later test for screen_base, which will never
be NULL at this point.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_fb.c