summaryrefslogtreecommitdiff
path: root/drivers/dahdi
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-09-24 22:44:49 +0000
committerShaun Ruffell <sruffell@digium.com>2010-09-24 22:44:49 +0000
commit12cde3e200321dc88e979ba2cbe7c33cc154f161 (patch)
tree383687780769980b725bbec9d3f8dbac0b9c14ee /drivers/dahdi
parent79a772f045c6c49efb4d63bb326ef3553893ff4a (diff)
dahdi: Remove remaining #if 0 locations from dahdi-base.
Dead code elimination. Signed-off-by: Shaun Ruffell <sruffell@digium.com> Acked-by: Kinsey Moore <kmoore@digium.com> Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> Review: https://reviewboard.asterisk.org/r/940/ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9410 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r--drivers/dahdi/dahdi-base.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index 8db1705..234bf4a 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -2997,18 +2997,6 @@ static int dahdi_open(struct inode *inode, struct file *file)
return dahdi_specchan_open(file);
}
-#if 0
-static int dahdi_open(struct file *file)
-{
- int res;
- unsigned long flags;
- spin_lock_irqsave(&bigzaplock, flags);
- res = __dahdi_open(file);
- spin_unlock_irqrestore(&bigzaplock, flags);
- return res;
-}
-#endif
-
static int dahdi_set_default_zone(int defzone)
{
if ((defzone < 0) || (defzone >= DAHDI_TONE_ZONE_MAX))
@@ -3494,20 +3482,6 @@ static int dahdi_release(struct inode *inode, struct file *file)
return dahdi_specchan_release(file);
}
-#if 0
-static int dahdi_release(struct inode *inode, struct file *file)
-{
- /* Lock the big zap lock when handling a release */
- unsigned long flags;
- int res;
- spin_lock_irqsave(&bigzaplock, flags);
- res = __dahdi_release(file);
- spin_unlock_irqrestore(&bigzaplock, flags);
- return res;
-}
-#endif
-
-
/**
* dahdi_alarm_channel() - notify userspace channel is (not) in alarm
* @chan: the DAHDI channel
@@ -5949,10 +5923,6 @@ static int dahdi_chan_ioctl(struct file *file, unsigned int cmd, unsigned long d
spin_unlock_irqrestore(&chan->lock, flags);
if (file->f_flags & O_NONBLOCK)
return -EINPROGRESS;
-#if 0
- rv = schluffen(&chan->txstateq);
- if (rv) return rv;
-#endif
break;
case DAHDI_WINK:
spin_lock_irqsave(&chan->lock, flags);
@@ -7369,9 +7339,6 @@ static inline void __dahdi_ec_chunk(struct dahdi_chan *ss, unsigned char *rxchun
if ((ss->ec_state->status.mode == ECHO_MODE_TRAINING) &&
(ss->ec_state->ops->echocan_traintap)) {
if (ss->ec_state->ops->echocan_traintap(ss->ec_state, ss->ec_state->status.last_train_tap++, rxlin)) {
-#if 0
- module_printk(KERN_NOTICE, "Finished training (%d taps trained)!\n", ss->ec_state->status.last_train_tap);
-#endif
ss->ec_state->status.mode = ECHO_MODE_ACTIVE;
}
}
@@ -7993,10 +7960,6 @@ that the waitqueue is empty. */
/* Notify the receiver... */
__qevent(ss->master, abort);
}
-#if 0
- module_printk(KERN_NOTICE, "torintr_receive: Aborted %d bytes of frame on %d\n", amt, ss->master);
-#endif
-
}
} else /* No place to receive -- drop on the floor */
break;