Skip to contentSkip to conversation

kernel/stop_machine: fix (de)reference function pointer

PATCH New Liu, Changcheng 1 participant 1 message Dec 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/stop_machine: fix (de)reference function pointer

It's better to avoid ambiguity when (de)referencing function pointer.

kernel/stop_machine.c +1 -1
index b759126..121d6aa 100644
@@ -577,7 +577,7 @@ int stop_machine_cpuslocked(cpu_stop_fn_t fn, void *data,
 
 		local_irq_save(flags);
 		hard_irq_disable();
-		ret = (*fn)(data);
+		ret = fn(data);
 		local_irq_restore(flags);
 
 		return ret;
Signature · 1 line
2.7.4