diff options
author | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-30 17:02:02 +0000 |
---|---|---|
committer | russell <russell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-08-30 17:02:02 +0000 |
commit | 8250cbcadda20a95a9312d95771e925a50e1ad58 (patch) | |
tree | 32f05969b00effaac1180afc58c674e48893790e | |
parent | 5ef09523bc09f3ad1ba4e51f72c89b1fa1bb25b5 (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
-rw-r--r-- | wctdm.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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) { |