linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: remove unused variable
@ 2019-03-12 13:28 Bartosz Golaszewski
  2019-03-12 13:58 ` Khalid Aziz
  0 siblings, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2019-03-12 13:28 UTC (permalink / raw)
  To: Andrew Morton, Anthony Yznaga, Khalid Aziz, Aneesh Kumar K . V,
	Jérôme Glisse
  Cc: linux-mm, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

The mm variable is set but unused. Remove it.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
---
 mm/mprotect.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/mm/mprotect.c b/mm/mprotect.c
index 028c724dcb1a..130dac3ad04f 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
@@ -39,7 +39,6 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
 		unsigned long addr, unsigned long end, pgprot_t newprot,
 		int dirty_accountable, int prot_numa)
 {
-	struct mm_struct *mm = vma->vm_mm;
 	pte_t *pte, oldpte;
 	spinlock_t *ptl;
 	unsigned long pages = 0;
-- 
2.20.1


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

end of thread, other threads:[~2019-03-12 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-12 13:28 [PATCH] mm: remove unused variable Bartosz Golaszewski
2019-03-12 13:58 ` Khalid Aziz
2019-03-12 14:03   ` Bartosz Golaszewski
2019-03-12 21:18     ` Andrew Morton

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).