diff mbox series

tools/testing/nvdimm: Drop empty platform remove function

Message ID 20221213100512.599548-1-u.kleine-koenig@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series tools/testing/nvdimm: Drop empty platform remove function | expand

Commit Message

Uwe Kleine-König Dec. 13, 2022, 10:05 a.m. UTC
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>
---
 tools/testing/nvdimm/test/nfit.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Dan Williams Dec. 13, 2022, 7:09 p.m. UTC | #1
Uwe Kleine-König wrote:
> A remove callback just returning 0 is equivalent to no remove callback
> at all. So drop the useless function.

Looks good, applied to my for-6.3/misc branch for now.
Uwe Kleine-König May 9, 2023, 5:55 a.m. UTC | #2
On Tue, Dec 13, 2022 at 11:09:23AM -0800, Dan Williams wrote:
> Uwe Kleine-König wrote:
> > A remove callback just returning 0 is equivalent to no remove callback
> > at all. So drop the useless function.
> 
> Looks good, applied to my for-6.3/misc branch for now.

It seems it didn't make it from your for-6.3/misc branch into the
mainline (as of v6.4-rc1). What is missing?

Best regards
Uwe
Uwe Kleine-König June 6, 2023, 3:57 p.m. UTC | #3
Hello Dan,

On Tue, May 09, 2023 at 07:55:46AM +0200, Uwe Kleine-König wrote:
> On Tue, Dec 13, 2022 at 11:09:23AM -0800, Dan Williams wrote:
> > Uwe Kleine-König wrote:
> > > A remove callback just returning 0 is equivalent to no remove callback
> > > at all. So drop the useless function.
> > 
> > Looks good, applied to my for-6.3/misc branch for now.
> 
> It seems it didn't make it from your for-6.3/misc branch into the
> mainline (as of v6.4-rc1). What is missing?

I don't know what was missing, back then, but the symptom stays: This
patch isn't contained in today's next. :-\

I found the patch in the nvdimm patchwork
(https://patchwork.kernel.org/project/linux-nvdimm/patch/20221213100512.599548-1-u.kleine-koenig@pengutronix.de/),
it was archived. I dared to unarchive it, maybe that helps!?

Best regards
Uwe
Dan Williams June 7, 2023, 3:44 a.m. UTC | #4
Uwe Kleine-König wrote:
> Hello Dan,
> 
> On Tue, May 09, 2023 at 07:55:46AM +0200, Uwe Kleine-König wrote:
> > On Tue, Dec 13, 2022 at 11:09:23AM -0800, Dan Williams wrote:
> > > Uwe Kleine-König wrote:
> > > > A remove callback just returning 0 is equivalent to no remove callback
> > > > at all. So drop the useless function.
> > > 
> > > Looks good, applied to my for-6.3/misc branch for now.
> > 
> > It seems it didn't make it from your for-6.3/misc branch into the
> > mainline (as of v6.4-rc1). What is missing?
> 
> I don't know what was missing, back then, but the symptom stays: This
> patch isn't contained in today's next. :-\
> 
> I found the patch in the nvdimm patchwork
> (https://patchwork.kernel.org/project/linux-nvdimm/patch/20221213100512.599548-1-u.kleine-koenig@pengutronix.de/),
> it was archived. I dared to unarchive it, maybe that helps!?

Apologies! I queued this and then did not advance the branch. You should
see it in linux-next shortly.
diff mbox series

Patch

diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index c75abb497a1a..207c19f831aa 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,
 	},