Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp393487imm; Wed, 19 Sep 2018 00:13:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7FCdacVOx6B+sDAtNvGit8gvANxisvJYZ9H2ZqGlIzJnR9qymkSdjaPpGdiJ4Ct+5ISLf X-Received: by 2002:a62:808c:: with SMTP id j134-v6mr34625747pfd.120.1537341236909; Wed, 19 Sep 2018 00:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537341236; cv=none; d=google.com; s=arc-20160816; b=rfYAB5TqDi3wUJfYHWGJ8AgK3Gp7GvI3lAOVPlJPWrmPPC45aBnhckhZfFlFTqlhdh 0kEyEluVmO/dAfye7W4KVZc3aqB1b0sdHKQsFigR/2FeWZCUrRddp+W1S3UpygScCRhe SKp5mQSbBdBoYicTk1KiXjI6SVrwjZRN3K6wKggvw8ghabGap44WEo+LIVvVFS3yCjZo N60y+DSUC4fxlw0XVemajeWyFKg2cX9qsvSpB/K7amy8IbqNOzqrWNaNTfHNkQPYp9Fj gl+NPRcg8qDBnxWFIldwAmVwnXJHfWMKJ/YtgmpIFEKJf/0OHxWvHzjcbi8H1wPkmfz1 V0DQ== 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:references:in-reply-to:mime-version :dkim-signature:dkim-filter; bh=AdXMgsS/2eKg//oxA9wVNM44O0GXSuF6bCTKz5ofg0U=; b=0Fl/5HV5gTbe7sFYCsQO4kHNdixdg7w4OJgnxaoc9uQZW00em1XHV/bDBn3V/+MLK+ T7VUQiVe+d88nZelUoYb3kxcGGuh+4p+yjwiUqzz8LIgOw0/BCYPIWR/tNc23RTpykPb kqTGZJa9HtH/ki+t3Z6mjKkR6ReW+w7b5PcxHboxQrvpcrY9ncXpjWCzX5g967M13VX2 uS1M5zvbq49ocogGGqVwMLR5vma5GmIbdO7Rte9ZTzB63aGiYt4AbHxugvzaY5KpGoWO 1KeyIJBdtIXQ5a8gOqnjr3tJMw53k95+kimHsOglUCtpWj3kBUe+n0GkXhHTVkrO20Iv hKBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=RzIUlPcW; 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 1-v6si21227897plo.96.2018.09.19.00.13.40; Wed, 19 Sep 2018 00:13:56 -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=RzIUlPcW; 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 S1730883AbeISMsR (ORCPT + 99 others); Wed, 19 Sep 2018 08:48:17 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:52397 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbeISMsR (ORCPT ); Wed, 19 Sep 2018 08:48:17 -0400 Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (authenticated) by conssluserg-01.nifty.com with ESMTP id w8J7BMcN016253 for ; Wed, 19 Sep 2018 16:11:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com w8J7BMcN016253 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1537341083; bh=AdXMgsS/2eKg//oxA9wVNM44O0GXSuF6bCTKz5ofg0U=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=RzIUlPcWZPu6xCOZib6Q8YbPCYWeT2wit/tg2fNIHkfJFU0aaMm/8ZNwtktz0tIGW k4FPKqyol8b8wEOmqrx0a78+R0JaTtmNYdb+N3LUk2Ha7YUz3LWiAb6nV4Xe3mj6ib +wkocX3kHXdYaHTTacALJsM7L4NmkdVr8CIIKg4oVw5olHxEf/7QBAVFYcw94T36xE H4I/NrM0nGyDUAehF1RGKRDHsfzfaHVsimKjIvDvK1CbeimT9Fhh6DR6FWd6maj85a LyDNugdFYNXWgKuKKWliXi3rfzN+4cc9sXcHEyIMp0smpAt9kvOIpL3U+9fufXB86Q VRAkAWRYVN3zQ== X-Nifty-SrcIP: [209.85.217.48] Received: by mail-vs1-f48.google.com with SMTP id x198-v6so1461412vsx.12 for ; Wed, 19 Sep 2018 00:11:22 -0700 (PDT) X-Gm-Message-State: APzg51DDibCiPZdcxIx/TA2ov1wzNA1c5ivnaFPbliE1+xk2e3a8pOSY qA6M23msXJ5cWWVpYCv0VRihxkTEhyBBDqE3HBU= X-Received: by 2002:a67:cd07:: with SMTP id u7-v6mr10296122vsl.78.1537341081737; Wed, 19 Sep 2018 00:11:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:7111:0:0:0:0:0 with HTTP; Wed, 19 Sep 2018 00:10:41 -0700 (PDT) In-Reply-To: <20180918230002.GA7572@WindFlash> References: <20180918230002.GA7572@WindFlash> From: Masahiro Yamada Date: Wed, 19 Sep 2018 16:10:41 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] kbuild: Optimize tests and remove shadowed local variable. To: David Howells Cc: Linux Kernel Mailing List , =?UTF-8?Q?Leonardo_Br=C3=A1s?= 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 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 eleme= nt > * 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_N= AME; > 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 > --=20 Best Regards Masahiro Yamada