mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arch: m68k: mac: misc.c:  Remove some unused functions
@ 2015-01-01 17:02 Rickard Strandqvist
  2015-01-04  7:21 ` Finn Thain
  0 siblings, 1 reply; 8+ messages in thread
From: Rickard Strandqvist @ 2015-01-01 17:02 UTC (permalink / raw)
  To: Joshua Thompson, Geert Uytterhoeven
  Cc: Rickard Strandqvist, linux-m68k, linux-kernel

Removes some functions that are not used anywhere:
mac_pram_write() mac_pram_read()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 arch/m68k/mac/misc.c |   46 ----------------------------------------------
 1 file changed, 46 deletions(-)

diff --git a/arch/m68k/mac/misc.c b/arch/m68k/mac/misc.c
index 707b61a..6fe7eb6 100644
--- a/arch/m68k/mac/misc.c
+++ b/arch/m68k/mac/misc.c
@@ -453,52 +453,6 @@ void pmu_shutdown(void)
  *-------------------------------------------------------------------
  */
 
-void mac_pram_read(int offset, __u8 *buffer, int len)
-{
-	__u8 (*func)(int);
-	int i;
-
-	switch(macintosh_config->adb_type) {
-	case MAC_ADB_IISI:
-		func = maciisi_read_pram; break;
-	case MAC_ADB_PB1:
-	case MAC_ADB_PB2:
-		func = pmu_read_pram; break;
-	case MAC_ADB_CUDA:
-		func = cuda_read_pram; break;
-	default:
-		func = via_read_pram;
-	}
-	if (!func)
-		return;
-	for (i = 0 ; i < len ; i++) {
-		buffer[i] = (*func)(offset++);
-	}
-}
-
-void mac_pram_write(int offset, __u8 *buffer, int len)
-{
-	void (*func)(int, __u8);
-	int i;
-
-	switch(macintosh_config->adb_type) {
-	case MAC_ADB_IISI:
-		func = maciisi_write_pram; break;
-	case MAC_ADB_PB1:
-	case MAC_ADB_PB2:
-		func = pmu_write_pram; break;
-	case MAC_ADB_CUDA:
-		func = cuda_write_pram; break;
-	default:
-		func = via_write_pram;
-	}
-	if (!func)
-		return;
-	for (i = 0 ; i < len ; i++) {
-		(*func)(offset++, buffer[i]);
-	}
-}
-
 void mac_poweroff(void)
 {
 	/*
-- 
1.7.10.4


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

end of thread, other threads:[~2015-02-03  6:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-01 17:02 [PATCH] arch: m68k: mac: misc.c: Remove some unused functions Rickard Strandqvist
2015-01-04  7:21 ` Finn Thain
2015-01-04 19:36   ` Geert Uytterhoeven
2015-02-01  3:39     ` nvram and generic_nvram modules are problematic, was " Finn Thain
2015-02-01  8:42       ` Russell King - ARM Linux
2015-02-03  6:11         ` Finn Thain
2015-02-01  9:11       ` Geert Uytterhoeven
2015-02-03  3:22         ` Finn Thain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®