lkml.org 
[lkml]   [2015]   [Jan]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] arch: m68k: mac: misc.c: Remove some unused functions
Date
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


\
 
 \ /
  Last update: 2015-01-01 18:21    [W:0.061 / U:7.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site