[ATM]: Replacing kmalloc/memset combination with kzalloc.
Signed-off-by: vignesh babu <[EMAIL PROTECTED]>
Signed-off-by: chas williams <[EMAIL PROTECTED]>
---
commit ffc2850a65ef863fe52650e5e1bc7ac3e098bbb8
tree 1e66e6f29dbda236b826cfdd6ce1b053d15224d9
parent 99d24edeb6abc6ca3a0d0fbdb83c664c04403c8c
author vignesh babu <[EMAIL PROTECTED]> Wed, 11 Jul 2007 12:15:49 -0400
committer chas williams - CONTRACTOR <[EMAIL PROTECTED]> Wed, 11 Jul 2007
12:15:49 -0400
net/sched/sch_atm.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c
index 54b92d2..2df38bb 100644
--- a/net/sched/sch_atm.c
+++ b/net/sched/sch_atm.c
@@ -292,13 +292,12 @@ static int atm_tc_change(struct Qdisc *sch, u32 classid,
u32 parent,
}
}
DPRINTK("atm_tc_change: new id %x\n",classid);
- flow = kmalloc(sizeof(struct atm_flow_data)+hdr_len,GFP_KERNEL);
+ flow = kzalloc(sizeof(struct atm_flow_data)+hdr_len, GFP_KERNEL);
DPRINTK("atm_tc_change: flow %p\n",flow);
if (!flow) {
error = -ENOBUFS;
goto err_out;
}
- memset(flow,0,sizeof(*flow));
flow->filter_list = NULL;
if (!(flow->q = qdisc_create_dflt(sch->dev,&pfifo_qdisc_ops,classid)))
flow->q = &noop_qdisc;
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html