public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@elte.hu>,
	Andrew Morton <akpm@linux-foundation.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Roel Kluin <roel.kluin@gmail.com>, Pekka Paalanen <pq@iki.fi>,
	Steven Rostedt <srostedt@redhat.com>
Subject: [PATCH v2 4/4] trace: clean up funny line breaks in stat_seq_show
Date: Tue, 06 Jan 2009 23:16:09 -0500	[thread overview]
Message-ID: <20090107041659.845180453@goodmis.org> (raw)
In-Reply-To: 20090107041605.168020089@goodmis.org

[-- Attachment #1: 0004-trace-clean-up-funny-line-breaks-in-stat_seq_show.patch --]
[-- Type: text/plain, Size: 945 bytes --]

From: Steven Rostedt <srostedt@redhat.com>

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>
---
 kernel/trace/trace_stat.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/kernel/trace/trace_stat.c b/kernel/trace/trace_stat.c
index 4cb4ff2..f110ce9 100644
--- a/kernel/trace/trace_stat.c
+++ b/kernel/trace/trace_stat.c
@@ -178,8 +178,9 @@ static void stat_seq_stop(struct seq_file *m, void *p)
 
 static int stat_seq_show(struct seq_file *s, void *v)
 {
-	struct trace_stat_list *entry =
-		list_entry(v, struct trace_stat_list, list);
+	struct trace_stat_list *entry;
+
+	entry =	list_entry(v, struct trace_stat_list, list);
 
 	return current_tracer.stat_show(s, entry->stat);
 }
-- 
1.5.6.5

-- 

  parent reply	other threads:[~2009-01-07  4:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-07  4:16 [PATCH v2 0/4] ftrace: important updates Steven Rostedt
2009-01-07  4:16 ` [PATCH v2 1/4] ftrace: convert unsigned index to signed Steven Rostedt
2009-01-07  4:16 ` [PATCH v2 2/4] ring-buffer: rename debugfs file tracing_on to writing_enabled Steven Rostedt
2009-01-07  4:16 ` [PATCH v2 3/4] tracing/ftrace: fix a memory leak in stat tracing Steven Rostedt
2009-01-07  4:16 ` Steven Rostedt [this message]
2009-01-07  9:49 ` [PATCH v2 0/4] ftrace: important updates Ingo Molnar
2009-01-07 17:54   ` Pekka Paalanen
2009-01-07 18:12     ` Steven Rostedt
2009-01-07 18:53       ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090107041659.845180453@goodmis.org \
    --to=rostedt@goodmis.org \
    --cc=akpm@linux-foundation.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=pq@iki.fi \
    --cc=roel.kluin@gmail.com \
    --cc=srostedt@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox