Skip to content

Commit e8a9cbf

Browse files
Steven RostedtIngo Molnar
authored andcommitted
trace: clean up funny line breaks in stat_seq_show
Impact: clean up Andrew Morton pointed out that the entry assignment in stat_seq_show did not need to be done in the declaration, causing funny line breaks. This patch makes it a bit more pleasing on the eyes. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent ff288b2 commit e8a9cbf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎kernel/trace/trace_stat.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ static void stat_seq_stop(struct seq_file *m, void *p)
178178

179179
static int stat_seq_show(struct seq_file *s, void *v)
180180
{
181-
struct trace_stat_list *entry =
182-
list_entry(v, struct trace_stat_list, list);
181+
struct trace_stat_list *entry;
182+
183+
entry = list_entry(v, struct trace_stat_list, list);
183184

184185
return current_tracer.stat_show(s, entry->stat);
185186
}

0 commit comments

Comments
 (0)