* [2.6 patch] drivers/char/mwave/smapi.c: small cleanups
@ 2005-01-31 12:48 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-01-31 12:48 UTC (permalink / raw)
To: linux-kernel
This patch contains the following cleanups:
- make the needlessly global function smapi_request static
- #if 0 the currently unused function SmapiQuerySystemID
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/char/mwave/smapi.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
--- linux-2.6.11-rc2-mm2-full/drivers/char/mwave/smapi.c.old 2005-01-31 13:19:34.000000000 +0100
+++ linux-2.6.11-rc2-mm2-full/drivers/char/mwave/smapi.c 2005-01-31 13:24:29.000000000 +0100
@@ -54,11 +54,11 @@
static unsigned short g_usSmapiPort = 0;
-int smapi_request(unsigned short inBX, unsigned short inCX,
- unsigned short inDI, unsigned short inSI,
- unsigned short *outAX, unsigned short *outBX,
- unsigned short *outCX, unsigned short *outDX,
- unsigned short *outDI, unsigned short *outSI)
+static int smapi_request(unsigned short inBX, unsigned short inCX,
+ unsigned short inDI, unsigned short inSI,
+ unsigned short *outAX, unsigned short *outBX,
+ unsigned short *outCX, unsigned short *outDX,
+ unsigned short *outDI, unsigned short *outSI)
{
unsigned short myoutAX = 2, *pmyoutAX = &myoutAX;
unsigned short myoutBX = 3, *pmyoutBX = &myoutBX;
@@ -511,8 +511,8 @@
return bRC;
}
-
-int SmapiQuerySystemID(void)
+#if 0
+static int SmapiQuerySystemID(void)
{
int bRC = -EIO;
unsigned short usAX = 0xffff, usBX = 0xffff, usCX = 0xffff,
@@ -531,7 +531,7 @@
return bRC;
}
-
+#endif /* 0 */
int smapi_init(void)
{
^ permalink raw reply [flat|nested] 2+ messages in thread* [2.6 patch] drivers/char/mwave/smapi.c: small cleanups
@ 2005-02-24 23:39 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-02-24 23:39 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
This patch contains the following cleanups:
- make the needlessly global function smapi_request static
- #if 0 the currently unused function SmapiQuerySystemID
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 31 Jan 2005
drivers/char/mwave/smapi.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
--- linux-2.6.11-rc2-mm2-full/drivers/char/mwave/smapi.c.old 2005-01-31 13:19:34.000000000 +0100
+++ linux-2.6.11-rc2-mm2-full/drivers/char/mwave/smapi.c 2005-01-31 13:24:29.000000000 +0100
@@ -54,11 +54,11 @@
static unsigned short g_usSmapiPort = 0;
-int smapi_request(unsigned short inBX, unsigned short inCX,
- unsigned short inDI, unsigned short inSI,
- unsigned short *outAX, unsigned short *outBX,
- unsigned short *outCX, unsigned short *outDX,
- unsigned short *outDI, unsigned short *outSI)
+static int smapi_request(unsigned short inBX, unsigned short inCX,
+ unsigned short inDI, unsigned short inSI,
+ unsigned short *outAX, unsigned short *outBX,
+ unsigned short *outCX, unsigned short *outDX,
+ unsigned short *outDI, unsigned short *outSI)
{
unsigned short myoutAX = 2, *pmyoutAX = &myoutAX;
unsigned short myoutBX = 3, *pmyoutBX = &myoutBX;
@@ -511,8 +511,8 @@
return bRC;
}
-
-int SmapiQuerySystemID(void)
+#if 0
+static int SmapiQuerySystemID(void)
{
int bRC = -EIO;
unsigned short usAX = 0xffff, usBX = 0xffff, usCX = 0xffff,
@@ -531,7 +531,7 @@
return bRC;
}
-
+#endif /* 0 */
int smapi_init(void)
{
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-25 0:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 12:48 [2.6 patch] drivers/char/mwave/smapi.c: small cleanups Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-02-24 23:39 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox