mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
tools/perf/perf.c: Clean up trivial style issues
Checked with: ./../scripts/checkpatch.pl --terse --file perf.c perf.c: 51: ERROR: open brace '{' following function declarations go on the next line perf.c: 73: ERROR: "foo*** bar" should be "foo ***bar" perf.c:112: ERROR: space prohibited before that close parenthesis ')' perf.c:127: ERROR: space prohibited before that close parenthesis ')' perf.c:171: ERROR: "foo** bar" should be "foo **bar" perf.c:213: ERROR: "(foo*)" should be "(foo *)" perf.c:216: ERROR: "(foo*)" should be "(foo *)" perf.c:217: ERROR: space required before that '*' (ctx:OxV) perf.c:452: ERROR: do not initialise statics to 0 or NULL perf.c:453: ERROR: do not initialise statics to 0 or NULL Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Masami Hiramatsu <mhiramat@redhat.com> LKML-Reference: <1264633557-17597-7-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
ae7f6711d6
commit
4c574159d0
1 changed files with 11 additions and 10 deletions
|
@ -48,7 +48,8 @@ int check_pager_config(const char *cmd)
|
||||||
return c.val;
|
return c.val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void commit_pager_choice(void) {
|
static void commit_pager_choice(void)
|
||||||
|
{
|
||||||
switch (use_pager) {
|
switch (use_pager) {
|
||||||
case 0:
|
case 0:
|
||||||
setenv("PERF_PAGER", "cat", 1);
|
setenv("PERF_PAGER", "cat", 1);
|
||||||
|
@ -450,8 +451,8 @@ int main(int argc, const char **argv)
|
||||||
setup_path();
|
setup_path();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
static int done_help = 0;
|
static int done_help;
|
||||||
static int was_alias = 0;
|
static int was_alias;
|
||||||
|
|
||||||
was_alias = run_argv(&argc, &argv);
|
was_alias = run_argv(&argc, &argv);
|
||||||
if (errno != ENOENT)
|
if (errno != ENOENT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue