Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp120893imm; Thu, 4 Oct 2018 19:32:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV61aIacgGa6Ei+IrxXCf8fEbCMbF4zVrzkwyg4GJGOmbPxZ2Wjmn28AGMsyGY0SYJbn41HHu X-Received: by 2002:a63:c20f:: with SMTP id b15-v6mr8207075pgd.13.1538706745263; Thu, 04 Oct 2018 19:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538706745; cv=none; d=google.com; s=arc-20160816; b=c/9FkeCaJy8V+7GPg8gIEv/hcGDB7vnylfaPHzXPrA1HUE80b5wDn+50cW8CLPxz1o 6CetPtwyQ3mRsWHGWK3nziKmdqTa1FmbefJuvVlu8y1ZWVYgF6GonJrbZu/H8FYA9b+n cuLlGySIx0+u1BQBZ8x6Ti+wDRO+PAJdO97vtgjnEo4b9G7bzaIgwiLZrVTPjDPg/eYR DPiCD0TNdPGr5wK7ZQFTu2UI47rlzXQ4WgUyUzPKzQBQILb65mTXW58J4Jl6mq1g7w2S CDwWSZ3EYersCvNfTCuF4651dO3FAkjFAFiQHvDQkaZhvnAnnbejAVWRrrQ3BqIOYd2H QBbg== 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=MwZ32FHDFb06cX14HqCqMdNcuvZpEfir/97e6FdgbKE=; b=s7WMAfAtQp4wbV+ExKsycQsFT1RpNudvJ+VoXhaCRihPxVxIzeYC3VuzmVpcTGEPy5 7GChwRwwSN1k3nLu3BW5RzFGOB+LZ7c+S11eUVe2VSjtv5FADOeoxGWJu4LVqZwNRFsx qsE3QySrWzxFiSrmeSWpbC8LdDE67o7E/pzZj8aOAr5NnLb7PdfP2n/ETGTcmAdAnDPh 5qPGMXF54km0vrY+S67++Ibs9yy5ukJ4Te4ekhlSuYx1KFsJnsyBteFmxVj6dlEKSIuD c9BxSPjV1Y9lPdql0S5L93tT3pij+Z+qQ4CyXtijv0iu/AFzfwBO6rLsYCGQ2IHNCqLD Mgjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eLlbeDaP; 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 b65-v6si7119873pfe.265.2018.10.04.19.32.10; Thu, 04 Oct 2018 19:32:25 -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=eLlbeDaP; 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 S1727640AbeJEJ0i (ORCPT + 99 others); Fri, 5 Oct 2018 05:26:38 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:34917 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbeJEJ0h (ORCPT ); Fri, 5 Oct 2018 05:26:37 -0400 Received: by mail-ot1-f68.google.com with SMTP id j9-v6so11281492otl.2 for ; Thu, 04 Oct 2018 19:30:05 -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=MwZ32FHDFb06cX14HqCqMdNcuvZpEfir/97e6FdgbKE=; b=eLlbeDaPuCmlUcH4kDAkwifQ6ozCMyYvWdb7j9MjwPhIMY59hUWfaA4adnoUEu1Wig IeXeWgoKGZ8sCdr1PNXSN6Lmhmg0LLgmIN5ET2J461sy5+7XWJTV2OVPvNlH49RT2yus TE373TajzYrg5Yr/bL17R1O3ramNAzNbL16IYftbm6S6ws5OTU0APqVLPEDYsCsARLuB To7Bt2Stxat69lDlpVNN9DYvhEq8DrNKkY0E/FDPBU0ynru2Yth8LdOyDNE1fKyz9qay hEYcSY3xo/N3a6echNWjCwytn9e1+2LSS/jyuuxVo06hhiCkN0WdjqMLwpaiQDGLllhf 7y8g== 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=MwZ32FHDFb06cX14HqCqMdNcuvZpEfir/97e6FdgbKE=; b=ICyf3H+ozb4SKIrtjTOKkwYkQMlWGZurjBEkK1x3mrJABkk7D0hCaF4Yj3cHB+Mfug h5yPvPeLGWgiHy+C6uiePAeOYP8zXFNMbO3A4GLiJmvRiu/O7Fu5p7bewCHroBv/C3BO MnsIqgutwRTAR3Txvyl9peYHhlNthGivIKPV0VGa9gWXz4pu5J8fARJ2DHXn3A2UqwPL D2iKNARJOe2AZ7JYqL765n1BHJTCjlfWZh7HTU1qlE/+uZjIUORPYZbD4R3dT8Vz33Vk M/YpFjS/lEpRTM0lftHkp88tPsxteoiJCu8V+avAqldvPTSV+DSiFT0B93reAGxs8n4f t9fA== X-Gm-Message-State: ABuFfohXbnS6Xo1zsM1oYWxA77t2QfDnWw4vQfDj7ScFuHPEt4C20p7s 4HkqxQnvEtTc9JsuYhclfBl/A85nOLrmQr+ocOE= X-Received: by 2002:a9d:63d6:: with SMTP id e22-v6mr5538190otl.233.1538706605551; Thu, 04 Oct 2018 19:30:05 -0700 (PDT) MIME-Version: 1.0 References: <20180918230002.GA7572@WindFlash> In-Reply-To: From: Leonardo Bras Date: Thu, 4 Oct 2018 23:29:54 -0300 Message-ID: Subject: Re: [PATCH 1/1] kbuild: Optimize tests and remove shadowed local variable. To: David Howells Cc: linux-kernel , Masahiro Yamada 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 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. 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 tes= t. > > > > 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 ele= ment > > * 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