[POWERPC] Replace kmalloc+memset with kzalloc
[deliverable/linux.git] / arch / powerpc / platforms / pseries / reconfig.c
index 1773103354be458c22c32e0f79f8a10bdac08868..4ad33e41b0082794582e9a8710d063aa6e7ab599 100644 (file)
@@ -268,11 +268,10 @@ static char * parse_next_property(char *buf, char *end, char **name, int *length
 static struct property *new_property(const char *name, const int length,
                                     const unsigned char *value, struct property *last)
 {
-       struct property *new = kmalloc(sizeof(*new), GFP_KERNEL);
+       struct property *new = kzalloc(sizeof(*new), GFP_KERNEL);
 
        if (!new)
                return NULL;
-       memset(new, 0, sizeof(*new));
 
        if (!(new->name = kmalloc(strlen(name) + 1, GFP_KERNEL)))
                goto cleanup;
This page took 0.057963 seconds and 5 git commands to generate.