Skip to contentSkip to conversation

isdn: mISDN, don't compile unused stuff

PATCH Applied [email protected] 2 participants 2 messages Feb 2, 2010 – Feb 4, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 isdn: mISDN, don't compile unused stuff

From: Jiri Slaby <[email protected]>

Remove these compiler warnings:

drivers/isdn/hardware/mISDN/w6692.c:534: warning: setvolume' defined but not used drivers/isdn/hardware/mISDN/w6692.c:561: warning: enable_pots' defined but not used

by moving the functions inside #if 0 ... #endif. And an alternative is to remove them completely if nobody has plans to use them.

---

 drivers/isdn/hardware/mISDN/w6692.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/isdn/hardware/mISDN/w6692.c renamed from drivers/isdn/hardware/mISDN/w6692.c~isdn-misdn-dont-compile-unused-stuff +2 -0
diff -puN drivers/isdn/hardware/mISDN/w6692.c~isdn-misdn-dont-compile-unused-stuff drivers/isdn/hardware/mISDN/w6692.c
@@ -529,6 +529,7 @@ W6692_fill_Bfifo(struct w6692_ch *wch)
 	}
 }
 
+#if 0
 static int
 setvolume(struct w6692_ch *wch, int mic, struct sk_buff *skb)
 {
@@ -571,6 +572,7 @@ enable_pots(struct w6692_ch *wch)
 	WriteW6692(card, W_PCTL, card->pctl);
 	return 0;
 }
+#endif
 
 static int
 disable_pots(struct w6692_ch *wch)

_

maintainer Applied
#1 lore raw

From: [email protected]
Date: Tue, 02 Feb 2010 14:43:46 -0800

Quoted 7 lines

From: Jiri Slaby <[email protected]>

Remove these compiler warnings:

drivers/isdn/hardware/mISDN/w6692.c:534: warning: setvolume' defined but not used drivers/isdn/hardware/mISDN/w6692.c:561: warning: enable_pots' defined but not used

Quoted 6 lines

by moving the functions inside #if 0 ... #endif. And an alternative is to remove them completely if nobody has plans to use them.

Applied.