[media] radio-sf16fmr2: 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> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Родитель
39e30a22d2
Коммит
3bf740bf8d
|
@ -295,7 +295,6 @@ static void fmr2_remove(struct fmr2 *fmr2)
|
||||||
static int fmr2_isa_remove(struct device *pdev, unsigned int ndev)
|
static int fmr2_isa_remove(struct device *pdev, unsigned int ndev)
|
||||||
{
|
{
|
||||||
fmr2_remove(dev_get_drvdata(pdev));
|
fmr2_remove(dev_get_drvdata(pdev));
|
||||||
dev_set_drvdata(pdev, NULL);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче