lkml.org 
[lkml]   [2006]   [Mar]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateThu, 16 Mar 2006 15:32:54 +0900
FromKAMEZAWA Hiroyuki <>
SubjectRe: [PATCH] for_each_possible_cpu [9/19] i386 fix patch
patch for i386 for_each_possible_cpu() includes unnecessary parts...
Sorry..

Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>

Index: linux-2.6.16-rc6-mm1/arch/i386/oprofile/nmi_int.c
===================================================================
--- linux-2.6.16-rc6-mm1.orig/arch/i386/oprofile/nmi_int.c
+++ linux-2.6.16-rc6-mm1/arch/i386/oprofile/nmi_int.c
@@ -123,11 +123,9 @@ static void free_msrs(void)
 {
 	int i;
 	for_each_possible_cpu(i) {
-		if (cpu_msrs[i].counters)
-			kfree(cpu_msrs[i].counters);
+		kfree(cpu_msrs[i].counters);
 		cpu_msrs[i].counters = NULL;
-		if (cpu_msrs[i].controls)
-			kfree(cpu_msrs[i].controls);
+		kfree(cpu_msrs[i].controls);
 		cpu_msrs[i].controls = NULL;
 	}
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-16 07:35    [from the cache]
©2003-2008