Skip to content

Commit

Permalink
video: xilinxfb: Remove redundant dev_set_drvdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sachin Kamat authored and Tomi Valkeinen committed Sep 26, 2013
1 parent 3e3d222 commit 090fd59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/video/xilinxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ static int xilinxfb_assign(struct platform_device *pdev,

err_region:
kfree(drvdata);
dev_set_drvdata(dev, NULL);

return rc;
}
Expand Down Expand Up @@ -404,7 +403,6 @@ static int xilinxfb_release(struct device *dev)
#endif

kfree(drvdata);
dev_set_drvdata(dev, NULL);

return 0;
}
Expand Down

0 comments on commit 090fd59

Please sign in to comment.