Skip to content

Commit

Permalink
ftrace: cleanups
Browse files Browse the repository at this point in the history
no code changed.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ingo Molnar authored and Thomas Gleixner committed May 23, 2008
1 parent 93dcc6e commit afc2abc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1155,12 +1155,12 @@ lat_print_generic(struct trace_seq *s, struct trace_entry *entry, int cpu)

hardirq = entry->flags & TRACE_FLAG_HARDIRQ;
softirq = entry->flags & TRACE_FLAG_SOFTIRQ;
if (hardirq && softirq)
if (hardirq && softirq) {
trace_seq_putc(s, 'H');
else {
if (hardirq)
} else {
if (hardirq) {
trace_seq_putc(s, 'h');
else {
} else {
if (softirq)
trace_seq_putc(s, 's');
else
Expand Down Expand Up @@ -2177,8 +2177,7 @@ tracing_poll_pipe(struct file *filp, poll_table *poll_table)
* Always select as readable when in blocking mode
*/
return POLLIN | POLLRDNORM;
}
else {
} else {
if (!trace_empty(iter))
return POLLIN | POLLRDNORM;
poll_wait(filp, &trace_wait, poll_table);
Expand Down

0 comments on commit afc2abc

Please sign in to comment.