From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938531AbcJQRD0 (ORCPT ); Mon, 17 Oct 2016 13:03:26 -0400 Received: from smtprelay0019.hostedemail.com ([216.40.44.19]:60277 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932570AbcJQQ4U (ORCPT ); Mon, 17 Oct 2016 12:56:20 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:541:599:800:960:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3167:3352:3622:3653:3865:3866:3867:3870:4321:4362:5007:6120:7901:10004:10400:10848:11026:11232:11658:11914:12043:12438:12555:12681:12740:12760:13069:13255:13311:13357:13439:14181:14659:14721:21080:21451:30046:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:4,LUA_SUMMARY:none X-HE-Tag: point70_36427f08d9b0b X-Filterd-Recvd-Size: 1816 Message-ID: <1476723371.1973.3.camel@perches.com> Subject: Re: [PATCH] checkpatch: don't try to get maintained status when --no-tree is given From: Joe Perches To: Jerome Forissier , Andy Whitcroft , linux-kernel@vger.kernel.org Cc: Andrew Morton Date: Mon, 17 Oct 2016 09:56:11 -0700 In-Reply-To: <1476719709-16668-1-git-send-email-jerome.forissier@linaro.org> References: <1476719709-16668-1-git-send-email-jerome.forissier@linaro.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.0-2ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2016-10-17 at 17:55 +0200, Jerome Forissier wrote: > Fixes the following warning: > Use of uninitialized value $root in concatenation (.) or string at /path/to/checkpatch.pl line 764. Thanks Jerome. > Signed-off-by: Jerome Forissier Acked-by: Joe Perches > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index a8368d1..aa694bc 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -761,7 +761,7 @@ sub seed_camelcase_file { > sub is_maintained_obsolete { > my ($filename) = @_; > > - return 0 if (!(-e "$root/scripts/get_maintainer.pl")); > + return 0 if (!$tree || !(-e "$root/scripts/get_maintainer.pl")); > > my $status = `perl $root/scripts/get_maintainer.pl --status --nom --nol --nogit --nogit-fallback -f $filename 2>&1`;