aboutsummaryrefslogtreecommitdiff
path: root/arch/ppc64/kernel/scanlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc64/kernel/scanlog.c')
-rw-r--r--arch/ppc64/kernel/scanlog.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/scanlog.c b/arch/ppc64/kernel/scanlog.c
index 215bf890030..2edc947f7c4 100644
--- a/arch/ppc64/kernel/scanlog.c
+++ b/arch/ppc64/kernel/scanlog.c
@@ -225,8 +225,7 @@ int __init scanlog_init(void)
void __exit scanlog_cleanup(void)
{
if (proc_ppc64_scan_log_dump) {
- if (proc_ppc64_scan_log_dump->data)
- kfree(proc_ppc64_scan_log_dump->data);
+ kfree(proc_ppc64_scan_log_dump->data);
remove_proc_entry("scan-log-dump", proc_ppc64_scan_log_dump->parent);
}
}