[zaptel-commits] russell: branch 1.4 r2977 - /branches/1.4/wctdm.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Aug 30 12:02:02 CDT 2007


Author: russell
Date: Thu Aug 30 12:02:02 2007
New Revision: 2977

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2977
Log:
Remove some code that could never be executed.  Instead of fixing the if statement,
I just removed it.  The contents of this global array are guaranteed to be zeroed
out for us on load.

Modified:
    branches/1.4/wctdm.c

Modified: branches/1.4/wctdm.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/wctdm.c?view=diff&rev=2977&r1=2976&r2=2977
==============================================================================
--- branches/1.4/wctdm.c (original)
+++ branches/1.4/wctdm.c Thu Aug 30 12:02:02 2007
@@ -2247,12 +2247,7 @@
 	struct wctdm_desc *d = (struct wctdm_desc *)ent->driver_data;
 	int x;
 	int y;
-	static int initd_ifaces=0;
 	
-	if(initd_ifaces){
-		memset((void *)ifaces,0,(sizeof(struct wctdm *))*WC_MAX_IFACES);
-		initd_ifaces=1;
-	}
 	for (x=0;x<WC_MAX_IFACES;x++)
 		if (!ifaces[x]) break;
 	if (x >= WC_MAX_IFACES) {




More information about the zaptel-commits mailing list