diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-08-11 19:27:14 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-08-11 19:27:14 +0000 |
commit | 027f4624abbc016a17dcec9fb24cea92018fa3e0 (patch) | |
tree | 1efff486597ad158d7cab4185e51882f4e7d1ea7 /wcfxo.c | |
parent | d239f1c8263649b75bf160d67fb6247324d10e19 (diff) |
Eliminate useless code
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@226 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcfxo.c')
-rwxr-xr-x | wcfxo.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -809,12 +809,7 @@ static int __devinit wcfxo_init_one(struct pci_dev *pdev, const struct pci_devic struct wcfxo *wc; struct wcfxo_desc *d = (struct wcfxo_desc *)ent->driver_data; int x; - static int initd_ifaces=0; - - if(initd_ifaces){ - memset((void *)ifaces,0,(sizeof(struct wcfxo *))*WC_MAX_IFACES); - initd_ifaces=1; - } + for (x=0;x<WC_MAX_IFACES;x++) if (!ifaces[x]) break; if (x >= WC_MAX_IFACES) { |