[PATCH] kfree cleanup: arch
This is the arch/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in arch/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
f99d49adf5
commit
b2325fe1b7
@@ -286,10 +286,8 @@ static struct property *new_property(const char *name, const int length,
|
||||
return new;
|
||||
|
||||
cleanup:
|
||||
if (new->name)
|
||||
kfree(new->name);
|
||||
if (new->value)
|
||||
kfree(new->value);
|
||||
kfree(new->name);
|
||||
kfree(new->value);
|
||||
kfree(new);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user