All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/drv: Make use of local variable driver in drm_dev_register()
@ 2022-12-19 18:31 Uwe Kleine-König
  2022-12-20  7:24 ` Thomas Zimmermann
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2022-12-19 18:31 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann; +Cc: kernel, dri-devel

There is a local variable that contains dev->driver. Make use of it
instead of "open coding" it.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 drivers/gpu/drm/drm_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 203bf8d6c34c..3cc8e8111d16 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -889,8 +889,8 @@ int drm_dev_register(struct drm_device *dev, unsigned long flags)
 
 	dev->registered = true;
 
-	if (dev->driver->load) {
-		ret = dev->driver->load(dev, flags);
+	if (driver->load) {
+		ret = driver->load(dev, flags);
 		if (ret)
 			goto err_minors;
 	}

base-commit: 678e5b2258e871b22fe8c26edac2723feb852a47
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-06 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-19 18:31 [PATCH] drm/drv: Make use of local variable driver in drm_dev_register() Uwe Kleine-König
2022-12-20  7:24 ` Thomas Zimmermann
2023-01-05 14:33   ` Daniel Vetter
2023-01-05 20:16     ` Uwe Kleine-König
2023-01-06 18:57       ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.