Skip to content

Commit e98d14f

Browse files
Uwe Kleine-Königdjbw
authored andcommitted
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>
1 parent 7f80ab3 commit e98d14f

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

  • tools/testing/nvdimm/test

tools/testing/nvdimm/test/nfit.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3240,11 +3240,6 @@ static int nfit_test_probe(struct platform_device *pdev)
32403240
return 0;
32413241
}
32423242

3243-
static int nfit_test_remove(struct platform_device *pdev)
3244-
{
3245-
return 0;
3246-
}
3247-
32483243
static void nfit_test_release(struct device *dev)
32493244
{
32503245
struct nfit_test *nfit_test = to_nfit_test(dev);
@@ -3259,7 +3254,6 @@ static const struct platform_device_id nfit_test_id[] = {
32593254

32603255
static struct platform_driver nfit_test_driver = {
32613256
.probe = nfit_test_probe,
3262-
.remove = nfit_test_remove,
32633257
.driver = {
32643258
.name = KBUILD_MODNAME,
32653259
},

0 commit comments

Comments
 (0)