From: Sachin Kamat Date: Fri, 20 Sep 2013 06:32:24 +0000 (+0530) Subject: video: xilinxfb: Remove redundant dev_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=090fd59308c9d50b8eabf71cd28b5513250a7b79;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git video: xilinxfb: Remove redundant dev_set_drvdata Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 84c664ea8eb9..0e1dd3380a1e 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -369,7 +369,6 @@ err_fbmem: err_region: kfree(drvdata); - dev_set_drvdata(dev, NULL); return rc; } @@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev) #endif kfree(drvdata); - dev_set_drvdata(dev, NULL); return 0; }