Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BB21C433EF for ; Wed, 1 Dec 2021 05:32:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346747AbhLAFfp (ORCPT ); Wed, 1 Dec 2021 00:35:45 -0500 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:50848 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233686AbhLAFfd (ORCPT ); Wed, 1 Dec 2021 00:35:33 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=yinan@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UywZWaF_1638336727; Received: from localhost.localdomain(mailfrom:yinan@linux.alibaba.com fp:SMTPD_---0UywZWaF_1638336727) by smtp.aliyun-inc.com(127.0.0.1); Wed, 01 Dec 2021 13:32:10 +0800 From: Yinan Liu To: rostedt@goodmis.org Cc: peterz@infradead.org, mark-pk.tsai@mediatek.com, mingo@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/2] script/sorttable: code style improvements Date: Wed, 1 Dec 2021 13:32:07 +0800 Message-Id: <20211201053207.32339-3-yinan@linux.alibaba.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20211201053207.32339-1-yinan@linux.alibaba.com> References: <20210911135043.16014-1-yinan@linux.alibaba.com> <20211201053207.32339-1-yinan@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Modified the code style issue of if() {}, keep the code style consistent. Signed-off-by: Yinan Liu --- scripts/sorttable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/sorttable.h b/scripts/sorttable.h index da0911110c2a..1cf711248d60 100644 --- a/scripts/sorttable.h +++ b/scripts/sorttable.h @@ -462,11 +462,11 @@ static int do_sort(Elf_Ehdr *ehdr, void *retval = NULL; /* wait for ORC tables sort done */ rc = pthread_join(orc_sort_thread, &retval); - if (rc) + if (rc) { fprintf(stderr, "pthread_join failed '%s': %s\n", strerror(errno), fname); - else if (retval) { + } else if (retval) { rc = -1; fprintf(stderr, "failed to sort ORC tables '%s': %s\n", -- 2.19.1.6.gb485710b