From 12cde3e200321dc88e979ba2cbe7c33cc154f161 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Fri, 24 Sep 2010 22:44:49 +0000 Subject: dahdi: Remove remaining #if 0 locations from dahdi-base. Dead code elimination. Signed-off-by: Shaun Ruffell Acked-by: Kinsey Moore Acked-by: Russ Meyerriecks Acked-by: Tzafrir Cohen Review: https://reviewboard.asterisk.org/r/940/ git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9410 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'drivers/dahdi') 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; -- cgit v1.2.3