diff options
Diffstat (limited to 'drivers/atm/lanai.c')
-rw-r--r-- | drivers/atm/lanai.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c index fe60a59b7fc0..b9568e10965a 100644 --- a/drivers/atm/lanai.c +++ b/drivers/atm/lanai.c | |||
@@ -1482,16 +1482,10 @@ static inline void vcc_table_deallocate(const struct lanai_dev *lanai) | |||
1482 | static inline struct lanai_vcc *new_lanai_vcc(void) | 1482 | static inline struct lanai_vcc *new_lanai_vcc(void) |
1483 | { | 1483 | { |
1484 | struct lanai_vcc *lvcc; | 1484 | struct lanai_vcc *lvcc; |
1485 | lvcc = (struct lanai_vcc *) kmalloc(sizeof(*lvcc), GFP_KERNEL); | 1485 | lvcc = kzalloc(sizeof(*lvcc), GFP_KERNEL); |
1486 | if (likely(lvcc != NULL)) { | 1486 | if (likely(lvcc != NULL)) { |
1487 | lvcc->vbase = NULL; | ||
1488 | lvcc->rx.atmvcc = lvcc->tx.atmvcc = NULL; | ||
1489 | lvcc->nref = 0; | ||
1490 | memset(&lvcc->stats, 0, sizeof lvcc->stats); | ||
1491 | lvcc->rx.buf.start = lvcc->tx.buf.start = NULL; | ||
1492 | skb_queue_head_init(&lvcc->tx.backlog); | 1487 | skb_queue_head_init(&lvcc->tx.backlog); |
1493 | #ifdef DEBUG | 1488 | #ifdef DEBUG |
1494 | lvcc->tx.unqueue = NULL; | ||
1495 | lvcc->vci = -1; | 1489 | lvcc->vci = -1; |
1496 | #endif | 1490 | #endif |
1497 | } | 1491 | } |