tracing: Eliminate code duplication in kernel/tracepoint.c
authorAnirban Sinha <ASinha@zeugmasystems.com>
Tue, 25 Aug 2009 14:00:02 +0000 (07:00 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 25 Aug 2009 14:15:12 +0000 (16:15 +0200)
Signed-off-by: Anirban Sinha <asinha@zeugmasystems.com>
Reviewed-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: "Oleg Nesterov" <oleg@tv-sign.ru>
LKML-Reference: <DDFD17CC94A9BD49A82147DDF7D545C501EA9047@exchange.ZeugmaSystems.local>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/tracepoint.c

index 35dd27adb82c1c214891335965c87f44777084a0..06f165a4408312ca499cf7876c8b1878058e7261 100644 (file)
@@ -555,9 +555,6 @@ int tracepoint_module_notify(struct notifier_block *self,
 
        switch (val) {
        case MODULE_STATE_COMING:
-               tracepoint_update_probe_range(mod->tracepoints,
-                       mod->tracepoints + mod->num_tracepoints);
-               break;
        case MODULE_STATE_GOING:
                tracepoint_update_probe_range(mod->tracepoints,
                        mod->tracepoints + mod->num_tracepoints);