[zaptel-commits] kpfleming: branch 1.4 r3461 - /branches/1.4/zaptel-base.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Dec 13 10:10:16 CST 2007


Author: kpfleming
Date: Thu Dec 13 10:10:15 2007
New Revision: 3461

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3461
Log:
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

Modified:
    branches/1.4/zaptel-base.c

Modified: branches/1.4/zaptel-base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/zaptel-base.c?view=diff&rev=3461&r1=3460&r2=3461
==============================================================================
--- branches/1.4/zaptel-base.c (original)
+++ branches/1.4/zaptel-base.c Thu Dec 13 10:10:15 2007
@@ -1066,13 +1066,6 @@
 	}
 #endif
 
-}
-
-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)
@@ -7206,7 +7199,6 @@
 	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);




More information about the zaptel-commits mailing list