diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-06-07 06:26:00 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2023-06-07 23:30:21 +0300 |
commit | e98d14fa7315867fded127a98db355f49807dfdb (patch) | |
tree | ce4944dbd2c6af2baaeea7a104122fdc463b5952 /tools/testing/nvdimm | |
parent | 7f80ab365a1d10cb143c897954199c760272c338 (diff) | |
download | linux-e98d14fa7315867fded127a98db355f49807dfdb.tar.xz |
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>
Diffstat (limited to 'tools/testing/nvdimm')
-rw-r--r-- | tools/testing/nvdimm/test/nfit.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c index e4e2d1650dd5..005043bd9623 100644 --- a/tools/testing/nvdimm/test/nfit.c +++ b/tools/testing/nvdimm/test/nfit.c @@ -3240,11 +3240,6 @@ static int nfit_test_probe(struct platform_device *pdev) return 0; } -static int nfit_test_remove(struct platform_device *pdev) -{ - return 0; -} - static void nfit_test_release(struct device *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 = { .probe = nfit_test_probe, - .remove = nfit_test_remove, .driver = { .name = KBUILD_MODNAME, }, |