diff options
Diffstat (limited to 'arch/powerpc/platforms/pseries/reconfig.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/reconfig.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platforms/pseries/reconfig.c index 58c61219d08e..d7d400339458 100644 --- a/arch/powerpc/platforms/pseries/reconfig.c +++ b/arch/powerpc/platforms/pseries/reconfig.c | |||
@@ -286,10 +286,8 @@ static struct property *new_property(const char *name, const int length, | |||
286 | return new; | 286 | return new; |
287 | 287 | ||
288 | cleanup: | 288 | cleanup: |
289 | if (new->name) | 289 | kfree(new->name); |
290 | kfree(new->name); | 290 | kfree(new->value); |
291 | if (new->value) | ||
292 | kfree(new->value); | ||
293 | kfree(new); | 291 | kfree(new); |
294 | return NULL; | 292 | return NULL; |
295 | } | 293 | } |