Commit 5f70ba02 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Thomas Zimmermann

drm/drv: Make use of local variable driver in drm_dev_register()

There is a local variable that contains dev->driver. Make use of it
instead of "open coding" it.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221219183147.1639399-1-u.kleine-koenig@pengutronix.de
parent 678e5b22
...@@ -889,8 +889,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags) ...@@ -889,8 +889,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
dev->registered = true; dev->registered = true;
if (dev->driver->load) { if (driver->load) {
ret = dev->driver->load(dev, flags); ret = driver->load(dev, flags);
if (ret) if (ret)
goto err_minors; goto err_minors;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment