From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752661AbcGSGuH (ORCPT ); Tue, 19 Jul 2016 02:50:07 -0400 Received: from terminus.zytor.com ([198.137.202.10]:44070 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752265AbcGSGuF (ORCPT ); Tue, 19 Jul 2016 02:50:05 -0400 Date: Mon, 18 Jul 2016 23:49:15 -0700 From: tip-bot for Dan Carpenter Message-ID: Cc: tglx@linutronix.de, hpa@zytor.com, eranian@google.com, dan.carpenter@oracle.com, acme@redhat.com, peterz@infradead.org, mingo@kernel.org, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com Reply-To: peterz@infradead.org, mingo@kernel.org, alexander.shishkin@linux.intel.com, adrian.hunter@intel.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, eranian@google.com, dan.carpenter@oracle.com, acme@redhat.com In-Reply-To: <20160715210712.GA19522@mwanda> References: <20160715210712.GA19522@mwanda> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf jit: Add missing curly braces Git-Commit-ID: e03141db361399619f9ee97e00d4c6fe2b472104 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: e03141db361399619f9ee97e00d4c6fe2b472104 Gitweb: http://git.kernel.org/tip/e03141db361399619f9ee97e00d4c6fe2b472104 Author: Dan Carpenter AuthorDate: Sat, 16 Jul 2016 00:07:12 +0300 Committer: Arnaldo Carvalho de Melo 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 Cc: Adrian Hunter Cc: Alexander Shishkin Cc: Peter Zijlstra Cc: Stephane Eranian Cc: kernel-janitors@vger.kernel.org Link: http://lkml.kernel.org/r/20160715210712.GA19522@mwanda Signed-off-by: Arnaldo Carvalho de Melo --- 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;