[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-e03141db361399619f9ee97e00d4c6fe2b472104@git.kernel.org>
Date: Mon, 18 Jul 2016 23:49:15 -0700
From: tip-bot for Dan Carpenter <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tglx@...utronix.de, hpa@...or.com, eranian@...gle.com,
dan.carpenter@...cle.com, acme@...hat.com, peterz@...radead.org,
mingo@...nel.org, adrian.hunter@...el.com,
linux-kernel@...r.kernel.org, alexander.shishkin@...ux.intel.com
Subject: [tip:perf/core] perf jit: Add missing curly braces
Commit-ID: e03141db361399619f9ee97e00d4c6fe2b472104
Gitweb: http://git.kernel.org/tip/e03141db361399619f9ee97e00d4c6fe2b472104
Author: Dan Carpenter <dan.carpenter@...cle.com>
AuthorDate: Sat, 16 Jul 2016 00:07:12 +0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Mon, 18 Jul 2016 12:20:00 -0300
perf jit: Add missing curly braces
It doesn't change the runtime behavior, but my static checker complains
that curly braces were intended.
Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Cc: Adrian Hunter <adrian.hunter@...el.com>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Stephane Eranian <eranian@...gle.com>
Cc: kernel-janitors@...r.kernel.org
Link: http://lkml.kernel.org/r/20160715210712.GA19522@mwanda
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/jvmti/jvmti_agent.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/jvmti/jvmti_agent.c b/tools/perf/jvmti/jvmti_agent.c
index 3573f31..91bf333 100644
--- a/tools/perf/jvmti/jvmti_agent.c
+++ b/tools/perf/jvmti/jvmti_agent.c
@@ -491,10 +491,11 @@ jvmti_write_debug_info(void *agent, uint64_t code, const char *file,
if (sret != 1)
goto error;
}
- if (padding_count)
+ if (padding_count) {
sret = fwrite_unlocked(pad_bytes, padding_count, 1, fp);
if (sret != 1)
goto error;
+ }
funlockfile(fp);
return 0;
Powered by blists - more mailing lists