diff options
Diffstat (limited to 'arch/ppc64')
-rw-r--r-- | arch/ppc64/kernel/lparcfg.c | 4 | ||||
-rw-r--r-- | arch/ppc64/kernel/scanlog.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/ppc64/kernel/lparcfg.c b/arch/ppc64/kernel/lparcfg.c index e86155770bbc..3e7b2f28ec83 100644 --- a/arch/ppc64/kernel/lparcfg.c +++ b/arch/ppc64/kernel/lparcfg.c | |||
@@ -599,9 +599,7 @@ int __init lparcfg_init(void) | |||
599 | void __exit lparcfg_cleanup(void) | 599 | void __exit lparcfg_cleanup(void) |
600 | { | 600 | { |
601 | if (proc_ppc64_lparcfg) { | 601 | if (proc_ppc64_lparcfg) { |
602 | if (proc_ppc64_lparcfg->data) { | 602 | kfree(proc_ppc64_lparcfg->data); |
603 | kfree(proc_ppc64_lparcfg->data); | ||
604 | } | ||
605 | remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent); | 603 | remove_proc_entry("lparcfg", proc_ppc64_lparcfg->parent); |
606 | } | 604 | } |
607 | } | 605 | } |
diff --git a/arch/ppc64/kernel/scanlog.c b/arch/ppc64/kernel/scanlog.c index 215bf8900304..2edc947f7c44 100644 --- a/arch/ppc64/kernel/scanlog.c +++ b/arch/ppc64/kernel/scanlog.c | |||
@@ -225,8 +225,7 @@ int __init scanlog_init(void) | |||
225 | void __exit scanlog_cleanup(void) | 225 | void __exit scanlog_cleanup(void) |
226 | { | 226 | { |
227 | if (proc_ppc64_scan_log_dump) { | 227 | if (proc_ppc64_scan_log_dump) { |
228 | if (proc_ppc64_scan_log_dump->data) | 228 | kfree(proc_ppc64_scan_log_dump->data); |
229 | kfree(proc_ppc64_scan_log_dump->data); | ||
230 | remove_proc_entry("scan-log-dump", proc_ppc64_scan_log_dump->parent); | 229 | remove_proc_entry("scan-log-dump", proc_ppc64_scan_log_dump->parent); |
231 | } | 230 | } |
232 | } | 231 | } |