summaryrefslogtreecommitdiff
path: root/wctdm.c
diff options
context:
space:
mode:
authorrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-30 17:02:02 +0000
committerrussell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-30 17:02:02 +0000
commit8250cbcadda20a95a9312d95771e925a50e1ad58 (patch)
tree32f05969b00effaac1180afc58c674e48893790e /wctdm.c
parent5ef09523bc09f3ad1ba4e51f72c89b1fa1bb25b5 (diff)
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. git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@2977 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm.c')
-rw-r--r--wctdm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/wctdm.c b/wctdm.c
index 4e16229..04937db 100644
--- a/wctdm.c
+++ b/wctdm.c
@@ -2247,12 +2247,7 @@ static int __devinit wctdm_init_one(struct pci_dev *pdev, const struct pci_devic
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) {