Commit 3e5981774755f2f967cd1d3f3898576cff20e565

Authored by Jiri Slaby
Committed by David S. Miller
1 parent f0f4d641d4

isdn: mISDN, don't compile unused stuff

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.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

drivers/isdn/hardware/mISDN/w6692.c
... ... @@ -529,6 +529,7 @@
529 529 }
530 530 }
531 531  
  532 +#if 0
532 533 static int
533 534 setvolume(struct w6692_ch *wch, int mic, struct sk_buff *skb)
534 535 {
... ... @@ -571,6 +572,7 @@
571 572 WriteW6692(card, W_PCTL, card->pctl);
572 573 return 0;
573 574 }
  575 +#endif
574 576  
575 577 static int
576 578 disable_pots(struct w6692_ch *wch)