Skip to contentSkip to conversation

um: remove unused variable

PATCH Superseded Bartosz Golaszewski 2 participants 2 messages Mar 12, 2019 – Mar 13, 2019 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 um: remove unused variable

From: Bartosz Golaszewski <[email protected]>

The buf variable is unused. Remove it.

---
 arch/um/kernel/skas/uaccess.c | 1 -
 1 file changed, 1 deletion(-)
arch/um/kernel/skas/uaccess.c +0 -1
index 7f06fdbc7ee1..bd3cb694322c 100644
@@ -59,7 +59,6 @@ static pte_t *maybe_map(unsigned long virt, int is_write)
 static int do_op_one_page(unsigned long addr, int len, int is_write,
 		 int (*op)(unsigned long addr, int len, void *arg), void *arg)
 {
-	jmp_buf buf;
 	struct page *page;
 	pte_t *pte;
 	int n;
Signature · 7 lines
2.20.1


_______________________________________________
linux-um mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-um
maintainer Reviewed-by Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

The buf variable is unused. Remove it.

---
  arch/um/kernel/skas/uaccess.c | 1 -
  1 file changed, 1 deletion(-)
arch/um/kernel/skas/uaccess.c +0 -0
index 7f06fdbc7ee1..bd3cb694322c 100644

arch/um/kernel/skas/uaccess.c static pte_t *maybe_map(unsigned long virt, int is_write) · line 64

Quoted 7 lines
arch/um/kernel/skas/uaccess.c +0 -1
@@ -59,7 +59,6 @@ static pte_t *maybe_map(unsigned long virt, int is_write)
  static int do_op_one_page(unsigned long addr, int len, int is_write,
  		 int (*op)(unsigned long addr, int len, void *arg), void *arg)
  {
-	jmp_buf buf;
  	struct page *page;
  	pte_t *pte;
  	int n;
Signature · 3 lines
Anton R. Ivanov
Cambridgegreys Limited. Registered in England. Company Number 10273661
https://www.cambridgegreys.com/