mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 09:31:09 +00:00
video: xilinxfb: Remove redundant dev_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
3e3d2225ae
commit
090fd59308
1 changed files with 0 additions and 2 deletions
|
@ -369,7 +369,6 @@ static int xilinxfb_assign(struct platform_device *pdev,
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue