Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1890769imm; Sat, 6 Oct 2018 12:51:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV61XELQEQAlMspM6FwrNR8hqv9e82X36fDBJeYQs+lJvrmWlubIy2FN35JS26K71GNsP5f4D X-Received: by 2002:a17:902:44:: with SMTP id 62-v6mr17369540pla.181.1538855473926; Sat, 06 Oct 2018 12:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538855473; cv=none; d=google.com; s=arc-20160816; b=xj4SbALLvPX/8l9fykWJcKt9ZMT17XxYKS22mQdOK6P40yTqL5hq17U7Gau8q2eNjG oRf1lehOZJuNIKpscNn45FBQXsDZ+mCheIF4rwF60azF7UlMlAeZshZVjhd7AFsVsqFB Z6cSDuzYaH5xN4Bqv56yWflYHHzlKEaxzup7pWJUBriXz3ZMIaqiWCyJ73Mg7MsGdCb3 haNOKKxyuO/tx4pH7s3EScCBN6Jhi1Is72LwsXKOZ34H+Zo5H9wIP4fLhtBB8uekWRft 0faYdP8F9u6IbpsTq9NFNrYVkW8ck5FsJHCI7PNJsONgPLc+/+B8lD7AKnEQ3/hYir6m SGBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=Prl2vx9T9vHpiNlVuotNMkHoYOpEY+5NWBodqmnJ5cs=; b=Z97EBreeyoLx/3OkMdoiD9KX+aNJGSQKvoUB7UoTYayM7AvgmuuByoVD+jOFlXu+nH qDOVzABXHo/uOTMqIBKJM5emEMqRTtluAvPrUBLJoMrVd2lCPaIeMkqKFR4bcPWNdIje ciABPwhs+RKOYbniqelGG0kRbM6WLTIv9PFQ+hCMWNnY8ZWWVbNChw5P7xFJKODNX2is v76pFWTB0IdNFQeiBLT6/04odlYvkq+EB9cEDbwv3SShKiO6s/ChkbS90oFenYlCI93z TiYMx5s9OYx0xoMWDB9+sFRrToWfvpNEYK3FaMnvJ5fObrYox8H+K3W4vGzIqGL4T5fQ UzVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=dP63m7c1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b10-v6si13907396pfb.89.2018.10.06.12.50.55; Sat, 06 Oct 2018 12:51:13 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=dP63m7c1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727846AbeJGCzZ (ORCPT + 99 others); Sat, 6 Oct 2018 22:55:25 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:26297 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727771AbeJGCzZ (ORCPT ); Sat, 6 Oct 2018 22:55:25 -0400 Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w96JoOZ2011649 for ; Sun, 7 Oct 2018 04:50:24 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w96JoOZ2011649 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1538855424; bh=Prl2vx9T9vHpiNlVuotNMkHoYOpEY+5NWBodqmnJ5cs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dP63m7c1oN0P+92HXB/5oVPWKJY3vMXHPgId6wc5SGCrKOsCEtTavv3qu7PL9Boy/ 421Dc1sGCBrJr0GWN7Geb/CmZjBWhf6iYumuiy6KA/lhGEqeJDjgO1TUWmwfC/1mVj 21ptWGlETu3ybiRaBB0R4F+EMyT48SRFbIVQ5VP9lLWCJ5z6XGnWCmJlHTHzGqMXKn FG2C30MMbKlGURH787wjK5ENg5+Bu697E2pQYDcpZeAA/wIOlPlIGyx3XheXGGsuk/ eVtYD32vXFrDGS03qZNh1GiUwaDhu7Qu4vBeeJAShmXH7RnJIDofx7ZKiPRMYmX3YG 0xytzgaO0Cofw== X-Nifty-SrcIP: [209.85.222.45] Received: by mail-ua1-f45.google.com with SMTP id r15-v6so5890596uao.1 for ; Sat, 06 Oct 2018 12:50:24 -0700 (PDT) X-Gm-Message-State: ABuFfog1HdQGNlsntcyllKb9DRrw0IkHdsLFHpPGtd2jlU+TyvPjIuiV h6eehKRBX8S44a7P+TuuFg7PfCyZgHOcPp5NNZo= X-Received: by 2002:a9f:3826:: with SMTP id p35-v6mr6352866uad.42.1538855423472; Sat, 06 Oct 2018 12:50:23 -0700 (PDT) MIME-Version: 1.0 References: <20180918230002.GA7572@WindFlash> In-Reply-To: From: Masahiro Yamada Date: Sun, 7 Oct 2018 04:49:47 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] kbuild: Optimize tests and remove shadowed local variable. To: =?UTF-8?Q?Leonardo_Br=C3=A1s?= Cc: David Howells , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Leonardo, David, On Fri, Oct 5, 2018 at 11:32 AM Leonardo Bras wrote: > > Hello David, > > My name is Leonardo and I am new to kernel development. > > Is this patch acceptable? Do it need some rework? The change makes sense? > Is there a way to better follow the workflow for this patch? > > Please let me know if it needs anything. I thought David would pick this up, but he is not responding. Now, applied to my kbuild tree. Thanks. > > Best regards, > > Leonardo Bras > > On Wed, Sep 19, 2018 at 4:11 AM Masahiro Yamada > wrote: > > > > FW: David Howells > > > > > > 2018-09-19 8:00 GMT+09:00 Leonardo Br=C3=A1s : > > > Removes an unnecessary shadowed local variable (start). > > > Optimize test of isdigit: > > > - If isalpha returns true, isdigit will return false, so no need to t= est. > > > > > > Signed-off-by: Leonardo Br=C3=A1s > > > > > > This patch was sent to me, but maybe belong to David's field. > > > > David, will you take care of this patch? > > > > https://lore.kernel.org/patchwork/patch/988171/ > > > > I think the commit subject should be changed kbuild: -> ASN.1: > > > > > > Anyway, this patch looks trivial, > > FWIW > > > > Reviewed-by: Masahiro Yamada > > > > > > > > > > > > > --- > > > scripts/asn1_compiler.c | 8 ++++---- > > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > > > diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c > > > index c146020fc783..a0056df4e358 100644 > > > --- a/scripts/asn1_compiler.c > > > +++ b/scripts/asn1_compiler.c > > > @@ -413,7 +413,7 @@ static void tokenise(char *buffer, char *end) > > > > > > /* Handle string tokens */ > > > if (isalpha(*p)) { > > > - const char **dir, *start =3D p; > > > + const char **dir; > > > > > > /* Can be a directive, type name or e= lement > > > * name. Find the end of the name. > > > @@ -454,10 +454,10 @@ static void tokenise(char *buffer, char *end) > > > > > > tokens[tix++].token_type =3D TOKEN_TY= PE_NAME; > > > continue; > > > - } > > > > > > - /* Handle numbers */ > > > - if (isdigit(*p)) { > > > + } else if (isdigit(*p)) { > > > + /* Handle numbers */ > > > + > > > /* Find the end of the number */ > > > q =3D p + 1; > > > while (q < nl && (isdigit(*q))) > > > -- > > > 2.19.0 > > > > > > > > > > > -- > > Best Regards > > Masahiro Yamada --=20 Best Regards Masahiro Yamada