]> Pileus Git - ~andy/linux/blobdiff - kernel/trace/trace_output.c
hlist: drop the node parameter from iterators
[~andy/linux] / kernel / trace / trace_output.c
index 194d79602dc73f1881969a9d27e7e141fb545117..697e88d139076acc16eff22796efcc2e91b412ed 100644 (file)
@@ -739,12 +739,11 @@ static int task_state_char(unsigned long state)
 struct trace_event *ftrace_find_event(int type)
 {
        struct trace_event *event;
-       struct hlist_node *n;
        unsigned key;
 
        key = type & (EVENT_HASHSIZE - 1);
 
-       hlist_for_each_entry(event, n, &event_hash[key], node) {
+       hlist_for_each_entry(event, &event_hash[key], node) {
                if (event->type == type)
                        return event;
        }