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
commitf6fdb13b10ee763d7f6a9877f106c8fea7958332 (patch)
tree53c43d00fba7d591fa65d8c81c42e47239d959d0 /drivers/dahdi/wctdm.c
parent4e4fe7ae266e7d8472e716901ad11e4af5f2f767 (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);