drm/udl: Remove error check from fbdev setup

Remove the error check from the fbdev setup function. The driver's
probe function should not depend on a DRM client's state.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408082641.590-9-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann 2020-04-08 10:26:39 +02:00
parent f5ef076215
commit 66459fa21d

View File

@ -97,14 +97,10 @@ static int udl_usb_probe(struct usb_interface *interface,
DRM_INFO("Initialized udl on minor %d\n", udl->drm.primary->index);
r = drm_fbdev_generic_setup(&udl->drm, 0);
if (r)
goto err_drm_dev_unregister;
drm_fbdev_generic_setup(&udl->drm, 0);
return 0;
err_drm_dev_unregister:
drm_dev_unregister(&udl->drm);
err_free:
drm_dev_put(&udl->drm);
return r;