Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp276645imm; Tue, 9 Oct 2018 18:03:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV60gWOqz1Sf+OmJg5GQtVI/3+6FDIt5G5I85+Dg/eVEBCwqoximifgvggisnHnICouCOu1Ju X-Received: by 2002:a17:902:b78c:: with SMTP id e12-v6mr30729159pls.67.1539133428935; Tue, 09 Oct 2018 18:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539133428; cv=none; d=google.com; s=arc-20160816; b=EStiwKca+ySUE2rruojeT+kPZPQFASp0yiQV1PwdhdRpEyCzh3D9rZfVjGgP9fv7M0 XNxb25wVRiWM34JmOXCeNUj/1oKWIdFEB02SZUblY9Q2qv54KydfQnx9wYaVVjwXlKXn s57PP4y8wWRl+5hVGDwFVaQPFmpNTjohccAvoY/ThvAObS5smRu4HoMNq0orTCZdHhsO qp4nswKvhPtc1OsGl1HLfSBvfnaweYrIoqEfZTxd2aSzfAvzhqxGTPJ/7d7K7FcyInKr y7+8X7kqimoYO4yltYmqMX6WQMdjWNaatVHhsxmDAe42WEq1BwvkbSvCMb1gTRb1S229 K2yw== 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; bh=jTAyr4ZX0Mj/6XHpQeHPexF4USINVAuQBvI/Xeu1gPw=; b=FC1Jx9/rWkOe6t/0VkyrmQUwg+8OUwvUvDyElvfD6v1uyssgRXSYJ7IYaD2qOpeEF2 aBAq5KCtneSpMWEuxtux5BXSEqT+9WDAbpr7CjDx2LlQA2MNfwogvLei3uAoA5yoT5Zv skHw52+ah5HilbbdzjhA6rUwwoTXRjDBBxgTyZ2hopnZTY50tYMZDnuyt1F16JUT62QK ynzo3zd4rGRyKszIaVDnXi1BfwwS3aHG87kfm+Nx2DZhVFPAblvLnefMk0lH8XtIxq5Z AGWA5LC7BwQM6mW2kX8otGD6EUQiAvO3jTwFcb4QRFRfQF4iXNF+h1DF0tmbS4JaXW0T ulIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pRMRJGzF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13-v6si23640542pfo.108.2018.10.09.18.03.33; Tue, 09 Oct 2018 18:03:48 -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=@gmail.com header.s=20161025 header.b=pRMRJGzF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbeJJIWm (ORCPT + 99 others); Wed, 10 Oct 2018 04:22:42 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:37424 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbeJJIWl (ORCPT ); Wed, 10 Oct 2018 04:22:41 -0400 Received: by mail-ot1-f68.google.com with SMTP id o14so3685614oth.4 for ; Tue, 09 Oct 2018 18:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jTAyr4ZX0Mj/6XHpQeHPexF4USINVAuQBvI/Xeu1gPw=; b=pRMRJGzFW9q8nRPgWUicZHBMIcahdqJbEIh2bH2op9olN8glKPM6X5sGhEnUcbNPET YzL2YDWFGEkH3SsIzUlJ8/J6Otnf6yvxRK62Usxv2uw3dgK8ojl7BJ6sJIgSIiEC4A2l WdozftgeQcI3WOCE0S9OsGAGPLpJ4G6wGc6fgG0QG86xDCU+irSAWpbzOjs/pB18+Nf/ ZB/NQcsXdKX4x7UZnXTnPHrFs8DXpkJGOFfEFDSnUsdmxS5QaUecdgM9U9Zbf1W/blww YpRQJIXR5gJm/MKVtlsqE/LHYQ3fKdNadM8kOiaW6jKzV9gdJTXlGamTiUUvAwQqKIV5 Dojw== 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:content-transfer-encoding; bh=jTAyr4ZX0Mj/6XHpQeHPexF4USINVAuQBvI/Xeu1gPw=; b=joOU4me5yI6G2kbGUkwuc2Ld1gLF2bZhym1J9utR7XI1/b3p+h50cuT1O3bfisHoOO JmHB3lIveJhJGE+eO1RBAi3Qr/sGLRpA/vdX0W6wbz1InbrxaDoCUMEiJjCw0hq4wkKw yIERCIEvys++F6bT3lSYI2OI+rLMrNBOFyupwJPHF0cHiMWddWZ9TbA5XGzTkHTrIYS8 CTPwRm1oejPmZVJ5aRDR1DhK2hRm+kYxrcYpIX7cHI13w7No+I2mlLkYL7nwzNrj/UrP PQWmWWBY1iUc8o2hsxhEwYunUVdxRYeQFtCuOiOdTPDI9iFU0itYZbD9vrdJLcdBEaNB VHbw== X-Gm-Message-State: ABuFfohUj24U/xxNHRahbWSxdTovGbA/NTURFanSDaNJ9Nszb6m7KlDT +IhQwEaU4BOLOyIvPY9DmyAwNU+NCzEZ6Zfwpxk= X-Received: by 2002:a9d:728a:: with SMTP id t10mr8069770otj.172.1539133382201; Tue, 09 Oct 2018 18:03:02 -0700 (PDT) MIME-Version: 1.0 References: <20180918230002.GA7572@WindFlash> In-Reply-To: From: Leonardo Bras Date: Tue, 9 Oct 2018 22:02:50 -0300 Message-ID: Subject: Re: [PATCH 1/1] kbuild: Optimize tests and remove shadowed local variable. To: Masahiro Yamada Cc: David Howells , linux-kernel 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 Thank you! Please let me know if it needs any rework! Leonardo Bras On Sat, Oct 6, 2018 at 4:50 PM Masahiro Yamada wrote: > > 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 sens= e? > > 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= test. > > > > > > > > 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= element > > > > * name. Find the end of the name. > > > > @@ -454,10 +454,10 @@ static void tokenise(char *buffer, char *end) > > > > > > > > tokens[tix++].token_type =3D TOKEN_= TYPE_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 > > > > -- > Best Regards > Masahiro Yamada