@@ -41,11 +41,10 @@ efct_xport_alloc(struct efct *efct)
{
struct efct_xport *xport;
- xport = kmalloc(sizeof(*xport), GFP_KERNEL);
+ xport = kzalloc(sizeof(*xport), GFP_KERNEL);
if (!xport)
return xport;
- memset(xport, 0, sizeof(*xport));
xport->efct = efct;
return xport;
}
@@ -685,12 +684,10 @@ efct_xport_control(struct efct_xport *xp
context = va_arg(argp, void *);
va_end(argp);
- payload = kmalloc(sizeof(*payload), GFP_KERNEL);
+ payload = kzalloc(sizeof(*payload), GFP_KERNEL);
if (!payload)
return EFC_FAIL;
- memset(payload, 0, sizeof(*payload));
-
efct = node->efc->base;
hw = &efct->hw;