Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1101961ybe; Mon, 2 Sep 2019 14:33:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvc2EO7eV6AhS0cMUZlbMwn46dnuhigDUjv0I8I5dEQ4NsgUb1Jm5HuEydR2tFp6hvmEBD X-Received: by 2002:a65:47c1:: with SMTP id f1mr26605617pgs.169.1567459994277; Mon, 02 Sep 2019 14:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567459994; cv=none; d=google.com; s=arc-20160816; b=RrOxKqRYUulGZIs9xo7jZl9vt8oQne+V3BjmGO0ib721uYj/hNAPWqWgBmX1fEf1sD AuokY9MMRej/EidBygtMaUV+8qW7UY/SooCw7rBfQL6NN2niSredt8pAOxUtgR7rAORH iupgnKoKhgqIzyE3eLRD4XYtWCOGxD3+BdPeWKrRBE2kBO4b9+N+bstPOXCFFf7vDmfn s8lVwjvLeVon6RwjVwNZLaWKeNOp0tpvn8XC14NJMO0fQ86pmd5ZmLB2RPyZZhwCHKQO mhF5RQBQoUACT0imWyVmDrpuYLXNno24ItGn75u3L5lQrIsigbAOrJG5wwfdaD50XXYx fsNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=pRzaQ7RpTXTj09HDdlktAr/ebyQQrL0kch2BnxuHgVM=; b=L7hktie0V23YlCiIo6yVxiHTW18ZZjcT3HdreLdn9QJdZ6ANQQgjD46meEpY5l7gML cF9x0T/tcDpZbuYNuEmZLMkna8rd8ljtLcm7eA2El993J/Gd++S7u5iYdCuXbMsvmLzR Agj1R463Y8P1wddovGCGJIvvAxT4ayrdKm0j21FNTFGH530DRVN6WXUWrsTqdtMlkjdU RUKrvnfRmqdfp3Ei+l0R1Ofp986b76JjpAs2MSTK4PBU+GA0dd035zgcCWibVhQ30OFl n0vVXiYXbjVv8VrcMjHUDTtUrXiUEBhFB4rUlg3+60qqKFBLxpkmKTBNckge/UwyMSVH a3Lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si12582023pjr.62.2019.09.02.14.32.59; Mon, 02 Sep 2019 14:33:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727671AbfIBVcO (ORCPT + 99 others); Mon, 2 Sep 2019 17:32:14 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:43090 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbfIBVcO (ORCPT ); Mon, 2 Sep 2019 17:32:14 -0400 Received: by mail-ot1-f68.google.com with SMTP id 90so10830825otg.10; Mon, 02 Sep 2019 14:32:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pRzaQ7RpTXTj09HDdlktAr/ebyQQrL0kch2BnxuHgVM=; b=GPqChi5ZEQEJ2d6snw08BqkZoUfTizyDuyx91exo8Ojx18+lgomU/WROvx1jQtPZ1o 8rIghigt3pNT9eCnotG236Q9G+mbjSWGlK9a4bCfQeqHBrg1PIA+lcA4R+b919x6MGPF CfGbTH9T8aOFPb66/yGmcJfbCyJ4fsvS963PQkpjs7OWA9U9uqkK1T7OBXTP+PcUFvsP nM/0wpy5EE3gwtwxwvWftIb4RrBBIlzSVwI8lx0puDFK9h2lEJRgA+6iWCWfl46jQ+IK 9TFr+lMe8ULfDO84JKlLNYCyQTjdb8phYQY+MTy2Vvck7zFv869tS/ajd41eYm6DD9oi lGzg== X-Gm-Message-State: APjAAAWMn41siAlUT6+C55eDkyw3pfaGc1RjjOmJCWPszxsNe787fUpI Q6HGn1r6AtXlP9Ba9xW6h8NeGl1DxBf7dq9vSdxW0w== X-Received: by 2002:a9d:7411:: with SMTP id n17mr5860561otk.118.1567459933133; Mon, 02 Sep 2019 14:32:13 -0700 (PDT) MIME-Version: 1.0 References: <1567240295-44686-1-git-send-email-tiantao6@huawei.com> In-Reply-To: <1567240295-44686-1-git-send-email-tiantao6@huawei.com> From: "Rafael J. Wysocki" Date: Mon, 2 Sep 2019 23:32:01 +0200 Message-ID: Subject: Re: [PATCH] ACPICA: Namespace: fix the no brace needed warning To: tiantao Cc: Rafael Wysocki , Hanjun Guo , Robert Moore , "Schmauss, Erik" , Len Brown , Linuxarm , ACPI Devel Maling List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 31, 2019 at 10:34 AM tiantao wrote: > > for if else statements having single block no braces are needed fixed > the following checkpatch warning > > WARNING: braces {} are not necessary for any arm of this statement > + if (!prev_node) { > [...] > + } else { > [...] > > Signed-off-by: tiantao > --- > drivers/acpi/acpica/nsaccess.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/acpi/acpica/nsaccess.c b/drivers/acpi/acpica/nsaccess.c > index 2566e2d..7cef22a 100644 > --- a/drivers/acpi/acpica/nsaccess.c > +++ b/drivers/acpi/acpica/nsaccess.c > @@ -109,11 +109,10 @@ acpi_status acpi_ns_root_initialize(void) > new_node->descriptor_type = ACPI_DESC_TYPE_NAMED; > new_node->type = init_val->type; > > - if (!prev_node) { > + if (!prev_node) > acpi_gbl_root_node_struct.child = new_node; > - } else { > + else > prev_node->peer = new_node; > - } > > new_node->parent = &acpi_gbl_root_node_struct; > prev_node = new_node; > -- The ACPICA code comes from an external project and the coding style in it is different from the rest of the kernel, so the patch is not applicable. Thanks!