diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-13 16:10:15 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-13 16:10:15 +0000 |
commit | 5c315a7109df6efc3656145a09cfbca58c16c4cf (patch) | |
tree | 63f6e86baa19e42e066aa95f37989569e3489cc0 /zaptel-base.c | |
parent | 49c782c909ba99b1615901387364643fea203e8b (diff) |
remove tone_zone_init() completely, since it just initializing the array to contain all zero (NULL) entries and it will already be that way since it is a module-level static variable
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3461 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel-base.c')
-rw-r--r-- | zaptel-base.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/zaptel-base.c b/zaptel-base.c index 8a32bea..a3ee868 100644 --- a/zaptel-base.c +++ b/zaptel-base.c @@ -1068,13 +1068,6 @@ static void close_channel(struct zt_chan *chan) } -static void tone_zone_init(void) -{ - int x; - for (x=0;x<ZT_TONE_ZONE_MAX;x++) - tone_zones[x] = NULL; -} - static int free_tone_zone(int num) { struct zt_zone *z; @@ -7206,7 +7199,6 @@ static int __init zt_init(void) { printk(KERN_INFO "Zaptel Version: %s\n", ZAPTEL_VERSION); echo_can_init(); zt_conv_init(); - tone_zone_init(); fasthdlc_precalc(); rotate_sums(); rwlock_init(&chan_lock); |