[PATCH 08/39] drm: remove redundant clears from drm_setup
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Jul 10 05:11:42 PDT 2013
We kzalloc the driver node at init time, so no need to do this again.
Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
drivers/gpu/drm/drm_fops.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index 57e3014..9610997 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -73,15 +73,6 @@ static int drm_setup(struct drm_device * dev)
for (i = 0; i < ARRAY_SIZE(dev->counts); i++)
atomic_set(&dev->counts[i], 0);
- dev->sigdata.lock = NULL;
-
- dev->context_flag = 0;
- dev->last_context = 0;
- dev->last_checked = 0;
- dev->if_version = 0;
-
- dev->buf_async = NULL;
-
DRM_DEBUG("\n");
/*
--
1.8.3.2
More information about the dri-devel
mailing list