mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
tools/testing/nvdimm: Drop empty platform remove function
A remove callback just returning 0 is equivalent to no remove callback at all. So drop the useless function. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20221213100512.599548-1-u.kleine-koenig@pengutronix.de Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
committed by
Dan Williams
parent
7f80ab365a
commit
e98d14fa73
@@ -3240,11 +3240,6 @@ static int nfit_test_probe(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nfit_test_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void nfit_test_release(struct device *dev)
|
static void nfit_test_release(struct device *dev)
|
||||||
{
|
{
|
||||||
struct nfit_test *nfit_test = to_nfit_test(dev);
|
struct nfit_test *nfit_test = to_nfit_test(dev);
|
||||||
@@ -3259,7 +3254,6 @@ static const struct platform_device_id nfit_test_id[] = {
|
|||||||
|
|
||||||
static struct platform_driver nfit_test_driver = {
|
static struct platform_driver nfit_test_driver = {
|
||||||
.probe = nfit_test_probe,
|
.probe = nfit_test_probe,
|
||||||
.remove = nfit_test_remove,
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = KBUILD_MODNAME,
|
.name = KBUILD_MODNAME,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user