summaryrefslogtreecommitdiff
path: root/wct4xxp.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-11-21 05:34:02 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2003-11-21 05:34:02 +0000
commited29a5c540e7080cb6f54e338d4adf2c318dba8d (patch)
tree0d03c70a5a7642058f75cda882990c3e1e83e9e3 /wct4xxp.c
parenta76e59f6bb0140730fb5c9bdbc238f088de65930 (diff)
#if out variables/functions that aren't used (bug #506)
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@280 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wct4xxp.c')
-rwxr-xr-xwct4xxp.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/wct4xxp.c b/wct4xxp.c
index 57f6fd9..7e0ec5a 100755
--- a/wct4xxp.c
+++ b/wct4xxp.c
@@ -135,7 +135,7 @@ struct t4 {
int last0; /* for detecting double-missed IRQ */
};
-static void set_clear(struct t4 *wc, int span);
+static void __set_clear(struct t4 *wc, int span);
static int t4_startup(struct zt_span *span);
static int t4_shutdown(struct zt_span *span);
static int t4_rbsbits(struct zt_chan *chan, int bits);
@@ -294,6 +294,7 @@ static void __set_clear(struct t4 *wc, int span)
}
}
+#if 0
static void set_clear(struct t4 *wc, int span)
{
unsigned long flags;
@@ -301,6 +302,7 @@ static void set_clear(struct t4 *wc, int span)
__set_clear(wc, span);
spin_unlock_irqrestore(&wc->reglock, flags);
}
+#endif
static int t4_ioctl(struct zt_chan *chan, unsigned int cmd, unsigned long data)
{
@@ -833,6 +835,7 @@ static int t4_startup(struct zt_span *span)
return 0;
}
+#if 0
static int syncsrc = 0;
static int syncnum = 0 /* -1 */;
static int syncspan = 0;
@@ -907,6 +910,7 @@ found:
spin_unlock_irqrestore(&synclock, flags);
return 0;
}
+#endif
static inline void e1_check(struct t4 *wc, int span, int val)
{
@@ -1317,7 +1321,9 @@ static void t4_interrupt(int irq, void *dev_id, struct pt_regs *regs)
int x;
unsigned int status;
+#if 0
unsigned int status2;
+#endif
#if 0
if (wc->intcount < 20)
@@ -1497,8 +1503,11 @@ static int __devinit t4_init_one(struct pci_dev *pdev, const struct pci_device_i
{
int res;
struct t4 *wc;
+ int x,f;
+#if 0
+ int y;
unsigned int *canary;
- int x,y,f;
+#endif
if (pci_enable_device(pdev)) {