Skip to contentSkip to conversation

sparc32: cleanup mm/fault_32.c

PATCH Applied Sam Ravnborg 2 participants 2 messages May 15, 2012 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc32: cleanup mm/fault_32.c

From 08f1ed3b3fdf4d25068c457fcf249413f2235f97 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <[email protected]>
Date: Tue, 15 May 2012 19:02:08 +0200
Subject: [PATCH] sparc32: cleanup mm/fault_32.c

- remove unused variables
- fix coding style issues that hurts my eyes

---

Noticed a few unused variables and then an "if(" and then... I actually ran checkpatch on the file too - but ignored most of the complaints.

Sam

 arch/sparc/include/asm/pgtable_32.h |    2 -
 arch/sparc/mm/fault_32.c            |   94 ++++++++++++++++------------------
 2 files changed, 44 insertions(+), 52 deletions(-)
arch/sparc/include/asm/pgtable_32.h +0 -2
index 28a67bf..cbbbed5 100644
@@ -361,8 +361,6 @@ void srmmu_mapiorange(unsigned int bus, unsigned long xpa,
                       unsigned long xva, unsigned int len);
 void srmmu_unmapiorange(unsigned long virt_addr, unsigned int len);
 
-extern int invalid_segment;
-
 /* Encode and de-code a swap entry */
 static inline unsigned long __swp_type(swp_entry_t entry)
 {
arch/sparc/mm/fault_32.c +44 -50

244 lines not on this page · raw message

Signature · 1 line
1.6.0.6
maintainer Applied
#1 lore raw

From: Sam Ravnborg <[email protected]>
Date: Tue, 15 May 2012 19:04:34 +0200

Quoted 9 lines
Quoted 1 line

From 08f1ed3b3fdf4d25068c457fcf249413f2235f97 Mon Sep 17 00:00:00 2001

From: Sam Ravnborg <[email protected]>
Date: Tue, 15 May 2012 19:02:08 +0200
Subject: [PATCH] sparc32: cleanup mm/fault_32.c

- remove unused variables
- fix coding style issues that hurts my eyes

Applied, thanks Sam.

Quoted 3 lines

Noticed a few unused variables and then an "if(" and then... I actually ran checkpatch on the file too - but ignored most of the complaints.

You'll have to excuse me, as I wrote most of this code before I actually knew how to program :-)