# \[PATCH 13/15\] video: sunxvr1000: Remove redundant dev\_set\_drvdata

- From: Sachin Kamat \<hidden\>
- Date: 2013-09-20 06:44:22 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2013/09/13465398
- Thread: https://ratatoskr.run/linux-fbdev/2013/09/13465398/t.md

```text
Driver core sets driver data to NULL upon failure or remove.

Signed-off-by: Sachin Kamat <redacted>
---
 drivers/video/sunxvr1000.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/video/sunxvr1000.c b/drivers/video/sunxvr1000.c
index cc6f48b..58241b4 100644
--- a/drivers/video/sunxvr1000.c
+++ b/drivers/video/sunxvr1000.c
@@ -186,8 +186,6 @@ static int gfb_remove(struct platform_device *op)
 
         framebuffer_release(info);
 
-	dev_set_drvdata(&op->dev, NULL);
-
 	return 0;
 }
 
-- 
1.7.9.5

```
