summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi-base.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-03-11 14:50:00 +0000
committerShaun Ruffell <sruffell@digium.com>2009-03-11 14:50:00 +0000
commitfcdadcac2626a3f1dc5f72ba9e6190c7a21bd349 (patch)
tree1f1bf30768a3a70f1c1bc9d6d753a076c1c1023d /drivers/dahdi/dahdi-base.c
parentaf35b946d5d6b1f33223aa2494cc7f44f649c112 (diff)
Eliminating an unused parameter to dahdi_specchan_open.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6113 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r--drivers/dahdi/dahdi-base.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index 3343c12..2691cab 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -2626,7 +2626,7 @@ static int dahdi_timer_release(struct inode *inode, struct file *file)
return 0;
}
-static int dahdi_specchan_open(struct inode *inode, struct file *file, int unit, int inc)
+static int dahdi_specchan_open(struct inode *inode, struct file *file, int unit)
{
int res = 0;
@@ -2765,14 +2765,14 @@ static int dahdi_open(struct inode *inode, struct file *file)
chan = dahdi_alloc_pseudo();
if (chan) {
file->private_data = chan;
- return dahdi_specchan_open(inode, file, chan->channo, 1);
+ return dahdi_specchan_open(inode, file, chan->channo);
} else {
return -ENXIO;
}
} else
return -ENXIO;
}
- return dahdi_specchan_open(inode, file, unit, 1);
+ return dahdi_specchan_open(inode, file, unit);
}
#if 0
@@ -5349,7 +5349,7 @@ static int dahdi_prechan_ioctl(struct inode *inode, struct file *file, unsigned
return -EINVAL;
if (channo > DAHDI_MAX_CHANNELS)
return -EINVAL;
- res = dahdi_specchan_open(inode, file, channo, 0);
+ res = dahdi_specchan_open(inode, file, channo);
if (!res) {
/* Setup the pointer for future stuff */
chan = chans[channo];