diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-04-20 10:11:09 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-04-20 10:11:09 -0700 |
commit | cbf283c048798ada7e062892b21de85fb5727243 (patch) | |
tree | ff090ca3c3722d056df7953da19b629b82796560 /arch/ia64/kernel/topology.c | |
parent | c6180deb1da5d087341fb5a3c1a15e61492dcd6b (diff) | |
download | linux-cbf283c048798ada7e062892b21de85fb5727243.tar.gz linux-cbf283c048798ada7e062892b21de85fb5727243.tar.bz2 linux-cbf283c048798ada7e062892b21de85fb5727243.zip |
[IA64] Remove redundant NULL checks before kfree
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/topology.c')
-rw-r--r-- | arch/ia64/kernel/topology.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c index b47476d655f1..e9b628ba64e5 100644 --- a/arch/ia64/kernel/topology.c +++ b/arch/ia64/kernel/topology.c @@ -305,13 +305,10 @@ static struct kobj_type cache_ktype_percpu_entry = { static void __cpuinit cpu_cache_sysfs_exit(unsigned int cpu) { - if (all_cpu_cache_info[cpu].cache_leaves) { - kfree(all_cpu_cache_info[cpu].cache_leaves); - all_cpu_cache_info[cpu].cache_leaves = NULL; - } + kfree(all_cpu_cache_info[cpu].cache_leaves); + all_cpu_cache_info[cpu].cache_leaves = NULL; all_cpu_cache_info[cpu].num_cache_leaves = 0; memset(&all_cpu_cache_info[cpu].kobj, 0, sizeof(struct kobject)); - return; } |