Skip to content

Commit 090fd59

Browse files
Sachin Kamattomba
authored andcommitted
video: xilinxfb: Remove redundant dev_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
1 parent 3e3d222 commit 090fd59

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/video/xilinxfb.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ static int xilinxfb_assign(struct platform_device *pdev,
369369

370370
err_region:
371371
kfree(drvdata);
372-
dev_set_drvdata(dev, NULL);
373372

374373
return rc;
375374
}
@@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev)
404403
#endif
405404

406405
kfree(drvdata);
407-
dev_set_drvdata(dev, NULL);
408406

409407
return 0;
410408
}

0 commit comments

Comments
 (0)