Skip to content

Commit 84fe17f

Browse files
committed
dax/hmem: Drop unnecessary dax_hmem_remove()
Empty driver remove callbacks can just be elided. Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Gregory Price <[email protected]> Tested-by: Fan Ni <[email protected]> Reviewed-by: Vishal Verma <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/167602001664.1924368.9102029637928071240.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <[email protected]>
1 parent df2798b commit 84fe17f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/dax/hmem/hmem.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,8 @@ static int dax_hmem_probe(struct platform_device *pdev)
4444
return 0;
4545
}
4646

47-
static int dax_hmem_remove(struct platform_device *pdev)
48-
{
49-
/* devm handles teardown */
50-
return 0;
51-
}
52-
5347
static struct platform_driver dax_hmem_driver = {
5448
.probe = dax_hmem_probe,
55-
.remove = dax_hmem_remove,
5649
.driver = {
5750
.name = "hmem",
5851
},

0 commit comments

Comments
 (0)