[PATCH] arch: alpha: kernel: core_titan.c: Remove some unused functions
From: Rickard Strandqvist
Date: Sat Dec 06 2014 - 17:32:58 EST
Removes some functions that are not used anywhere:
titan_write_tig() titan_read_tig()
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist@xxxxxxxxxxxxxxxxxx>
---
arch/alpha/kernel/core_titan.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/arch/alpha/kernel/core_titan.c b/arch/alpha/kernel/core_titan.c
index 219bf27..2de2a2a 100644
--- a/arch/alpha/kernel/core_titan.c
+++ b/arch/alpha/kernel/core_titan.c
@@ -62,21 +62,7 @@ mk_tig_addr(int offset)
return (volatile unsigned long *)(TITAN_TIG_SPACE + (offset << 6));
}
-static inline u8
-titan_read_tig(int offset, u8 value)
-{
- volatile unsigned long *tig_addr = mk_tig_addr(offset);
- return (u8)(*tig_addr & 0xff);
-}
-
-static inline void
-titan_write_tig(int offset, u8 value)
-{
- volatile unsigned long *tig_addr = mk_tig_addr(offset);
- *tig_addr = (unsigned long)value;
-}
-
/*
* Given a bus, device, and function number, compute resulting
* configuration space address
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-alpha" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html