diff options
Diffstat (limited to 'arch/ppc/syslib/prom.c')
-rw-r--r-- | arch/ppc/syslib/prom.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/ppc/syslib/prom.c b/arch/ppc/syslib/prom.c index 278da6ee62ea..1b9aa0d6a924 100644 --- a/arch/ppc/syslib/prom.c +++ b/arch/ppc/syslib/prom.c | |||
@@ -1335,10 +1335,8 @@ release_OF_resource(struct device_node* node, int index) | |||
1335 | if (!res) | 1335 | if (!res) |
1336 | return -ENODEV; | 1336 | return -ENODEV; |
1337 | 1337 | ||
1338 | if (res->name) { | 1338 | kfree(res->name); |
1339 | kfree(res->name); | 1339 | res->name = NULL; |
1340 | res->name = NULL; | ||
1341 | } | ||
1342 | release_resource(res); | 1340 | release_resource(res); |
1343 | kfree(res); | 1341 | kfree(res); |
1344 | 1342 | ||