summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2008-07-07 19:48:29 +0000
committerShaun Ruffell <sruffell@digium.com>2008-07-07 19:48:29 +0000
commit38b0b5c165e1d9dccfd84d1c2b6045721c044625 (patch)
tree53c43d00fba7d591fa65d8c81c42e47239d959d0 /drivers/dahdi/wctdm.c
parente44bfeae289af2f7d21e016a0041c9a89fc6120a (diff)
Fix accidental zeroing out of the chans member of struct wctdm.
DAHDI-156 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4559 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm.c')
-rw-r--r--drivers/dahdi/wctdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c
index eb6e28e..372e85e 100644
--- a/drivers/dahdi/wctdm.c
+++ b/drivers/dahdi/wctdm.c
@@ -2262,8 +2262,8 @@ static int __devinit wctdm_init_one(struct pci_dev *pdev, const struct pci_devic
int cardcount = 0;
ifaces[x] = wc;
- wc->chans = wc->_chans;
memset(wc, 0, sizeof(struct wctdm));
+ wc->chans = wc->_chans;
spin_lock_init(&wc->lock);
wc->curcard = -1;
wc->ioaddr = pci_resource_start(pdev, 0);