[PATCH] kfree cleanup: arch
This is the arch/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in arch/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Acked-by: Grant Grundler <grundler@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
f99d49adf5
commit
b2325fe1b7
@@ -249,10 +249,8 @@ err_out:
|
||||
kfree(driver);
|
||||
cpufreq_us3_driver = NULL;
|
||||
}
|
||||
if (us3_freq_table) {
|
||||
kfree(us3_freq_table);
|
||||
us3_freq_table = NULL;
|
||||
}
|
||||
kfree(us3_freq_table);
|
||||
us3_freq_table = NULL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -263,7 +261,6 @@ static void __exit us3_freq_exit(void)
|
||||
{
|
||||
if (cpufreq_us3_driver) {
|
||||
cpufreq_unregister_driver(cpufreq_us3_driver);
|
||||
|
||||
kfree(cpufreq_us3_driver);
|
||||
cpufreq_us3_driver = NULL;
|
||||
kfree(us3_freq_table);
|
||||
|
Reference in New Issue
Block a user