linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] mm/hmm: remove set but not used variable 'devmem'
@ 2018-12-01  2:06 YueHaibing
  2018-12-03  0:48 ` Jerome Glisse
  2018-12-03 11:11 ` David Hildenbrand
  0 siblings, 2 replies; 3+ messages in thread
From: YueHaibing @ 2018-12-01  2:06 UTC (permalink / raw)
  To: jglisse, akpm, sfr, dan.j.williams
  Cc: YueHaibing, linux-mm, linux-kernel, kernel-janitors

Fixes gcc '-Wunused-but-set-variable' warning:

mm/hmm.c: In function 'hmm_devmem_ref_kill':
mm/hmm.c:995:21: warning:
 variable 'devmem' set but not used [-Wunused-but-set-variable]

It not used any more since commit 35d39f953d4e ("mm, hmm: replace
hmm_devmem_pages_create() with devm_memremap_pages()")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 mm/hmm.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/mm/hmm.c b/mm/hmm.c
index 50fbaf8..361f370 100644
--- a/mm/hmm.c
+++ b/mm/hmm.c
@@ -992,9 +992,6 @@ static void hmm_devmem_ref_exit(void *data)
 
 static void hmm_devmem_ref_kill(struct percpu_ref *ref)
 {
-	struct hmm_devmem *devmem;
-
-	devmem = container_of(ref, struct hmm_devmem, ref);
 	percpu_ref_kill(ref);
 }




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-12-03 11:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-01  2:06 [PATCH -next] mm/hmm: remove set but not used variable 'devmem' YueHaibing
2018-12-03  0:48 ` Jerome Glisse
2018-12-03 11:11 ` David Hildenbrand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).